Download the Spark the from the following URL:
Go to the following URL:
Her we need to select the spark version(the verson on which we are going to work) and package type (compatible version with hadoop)
Click on the Download Spark hyperlink. Then you will be redirected to the following URL
When you check that url , you will find many Download URLs. Here you need to select the first One. If this is not working (Not able to download) then you can select any link provided in that page.
Normally , downloaded files will be in the Downloads folder in Ubuntu.
Go to that folder and type the following .
tar -xvf spark.jar file (Her the downloaded jar file)
Now we have the spark software in our system.
Now go the the spark extracted folder after that type the following in terminal.
The above command will start the spark software in command
When the software runs, we will find two things which are sparkContext as sc , which is useful to create RDD. (Main part in the Spark)
sparkSession as spark. Which is useful to perform sql type queries in spark.
To come out from the spark shell.
Type :q or Ctrl+D