Installation of JDK 8, R,R Studio,sbt, scala, spark
Installation of java 8
sudo su
sudo apt install openjdk-8-jdk
Steps to install R & R Studio
sudo apt-key adv --keyserver
keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb
https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt updatesudo apt install libclang-dev
sudo apt install r-base
Test Install
Start R’s interactive shell as root.
sudo -i R
Install Rstudio
a. download latest Rstudio version
cd Downloads
sudo dpkg -i rstudio-1.2.1335-amd64.deb
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
if
anything gives error while sbt installation then try belove command
sudo
apt --fix-broken install
# 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
Installation of scala
sudo apt-get install scala
COMMANDS TO INSTALL SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
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
SPARK installation steps in ubuntu 18.04
cd
Downloads
sudo
su
sudo
mv spark /usr/lib/
Add
Path:
sudo nano ~/.bashrc
export
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export SPARK_HOME=/usr/lib/spark/
export PATH=$PATH:$SPARK_HOME/bin
Open a new terminal and verify installation by running the spark shell:
machineName:~ spark-shell
~~~~~~~~~~~~~~~~~~~MAY
ALL BE HAPPY~~~~~~~~~~~~~~~~~~~~~~~~
sudo nano ~/.bashrc
export SPARK_HOME=/usr/lib/spark/
export PATH=$PATH:$SPARK_HOME/bin
Open a new terminal and verify installation by running the spark shell:
machineName:~ spark-shell
Comments
Post a Comment