INSTALLATION SBT ON UBUNTU 18.04


 UBUNTU COMMANDS TO INSTALL SBT

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 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt

# the following command will take several minutes. it will finally start a sbt shell.
sbt

# exit the shell by typing exit at the prompt, i.e.
exit

-------------------- In a separate terminal the steps below can be executed. ---------

cd /usr/lib/spark/conf
sudo cp log4j.properties.template log4j.properties
sudo vi log4j.properties

change INFO to ERROR as below:
log4j.rootCategory=INFO, console

to

log4j.rootCategory=ERROR, console

exit log4j.properties after saving it.


-- not needed----------

sudo apt-get remove --purge openjdk* java-common default-jdk
sudo apt-get remove --purge sbt
sudo apt-get autoremove --purge

# Check weather you successfully removed all related packages by:

sudo update-alternatives --config java

# The system shall prompt you there is no Java available to config, otherwise this workaround fails.

# Then reinstall required packages:

sudo apt-get install openjdk-8-jdk sbt

# In ~/.bashrc, change JAVA_HOME as below:

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64

# quit the terminal and restart another terminal.

# Go to project directory and run sbt as
sbt

# exit sbt shell by typing exit, i.e. type exit at prompt sbt:student>

# getting scala
sudo apt-get install scala

Comments

Popular posts from this blog

Installation of JDK 8, R,R Studio,sbt, scala, spark

INSTALLATION R and Rstudio IN UBUNTU 18.04

mongodb