APACHE-SPARK INSTALLATION ON UBUNTU

 SPARK INSTALLATION ON UBUNTU

strep 1:

download java using the below link

https://www.oracle.com/in/java/technologies/javase/javase8-archive-downloads.html


and extract the tar file using the below command 

tar -zxvf jdk-8u202-linux-x64.tar.gz (Extract the tar file)

step 2:

spark download click the below link here is the direct download link 

         https://dlcdn.apache.org/spark/spark-3.4.0/spark-3.4.0-bin-hadoop3.tgz  in the link you can see the latest spark version 3.4.0 you can click and download.

(or)if you want to download other versions clickbelow the link you can latest and old versions

https://spark.apache.org/downloads.html

extract the tar file using the below command:

tar -zxvf <your spark path...>   

exmaple...

tar -zxvf /home/user/spark-3.4.0-bin-hadoop3.tgz

step 3:

open the bashrc file using the command "gedit .bashrc" and set your spark and java path 

export JAVA_HOME=/home/user/jdk1.8.0_202

export SPARK_HOME=/home/user/spark-3.4.0-bin-hadoop3

export PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$SPARK_HOME/bin:$PATH



step 3:

in your spark conf  folder you can see the spark-env.sh-template file and take copy and paste it there only.and rename that copy as a spark-env.sh and also set $JAVA_HOME path

you can see here i copy and rename the that fie


open that rename file and set java path like below




step 4:

now you can able to start the spark using

"sbin/start-all.sh"

and using the "jps" commands you can see the spark demons are running..

there are two demons 

spark master

spark worker


 

Comments

Popular posts from this blog

Data Migration Using Apache Sqoop

APACHE -CASSANDRA INSTALLATION ON UBUNTU