wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz
tar xzvf ./scala-2.10.5.tgz
mv scala-2.10.5 /usr/lib/
Edit .bashrc
or .zshrc
with these.
export SCALA_HOME=/usr/lib/scala-2.10.5
wget http://downloads.typesafe.com/scala/2.10.5/scala-2.10.5.tgz
tar xzvf ./scala-2.10.5.tgz
mv scala-2.10.5 /usr/lib/
Edit .bashrc
or .zshrc
with these.
export SCALA_HOME=/usr/lib/scala-2.10.5
apt-get purge -y openjdk*
add-apt-repository -y ppa:webupd8team/java
apt-get update -y
apt-get install -y oracle-java7-installer
# Refer to https://golang.org/dl/
wget https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
tar xzvf ./go1.6.linux-amd64.tar.gz
mv go /usr/local/
export SPARK_MASTER_IP=192.168.0.8
export SCALA_HOME=/usr/lib/scala-2.10.5
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/
export HADOOP_HOME=/usr/lib/hadoop
export HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
SPARK_LOCAL_DIRS=/usr/lib/spark-1.5.0
SPARK_DRIVER_MEMORY=1G
vim /etc/apt/sources.list | |
``` | |
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse | |
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse |
nohup sudo /usr/local/bin/docker daemon -D -g /var/lib/docker -H unix:// -H tcp://0.0.0.0:2376 --label provider=virtualbox --tlsverify --tlscacert | |
=/var/lib/boot2docker/ca.pem --tlscert=/var/lib/boot2docker/server.pem --tlskey=/var/lib/boot2docker/server-key.pem -s aufs --registry-mirror=https://42.62.10 | |
1.165:5000 & |
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt
Or install with deb package.