Last active
October 7, 2016 16:43
-
-
Save milindjagre/6547cade029ce521b540510a406329a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following are the steps which you need to follow in order to install Spark 1.6.1 on Ubuntu 14.04 | |
Assumptions : username is hduser | |
Step 1 : JAVA Installation | |
If you have already installed JAVA, then you can skip this step. | |
If JAVA is not installed, then please follow below steps in order to install JAVA 1.7 | |
command 1 : sudo apt-get update | |
command 2 : sudo apt-get install openjdk | |
Once above commands are executed successfully, then you can run following command for verification. | |
$java -version | |
Above command should give you output which might look something like this. | |
java version "1.7.0_71" | |
Java(TM) SE Runtime Environment (build 1.7.0_71-b13) | |
Java HotSpot(TM) Client VM (build 25.0-b02, mixed mode) | |
JAVA version may be different based on your installation. | |
Step 2 : Scala Installation | |
If you done Scala Installation, then you can skip this step, otherwise you can install Scala 2.11.6 with the help of <a href="https://milindjagre.wordpress.com/2016/09/07/scala-2-11-7-installation-on-ubuntu-14-04/"> this </a> link. | |
Step 3 : Download Spark Package | |
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.6.1-bin-hadoop2.6.tgz | |
Step 4 : Extracting Spark Package | |
sudo cp spark-1.6.1-bin-hadoop2.6.tgz /usr/local/ | |
cd /usr/local/ | |
sudo tar -xvf spark-1.6.1-bin-hadoop2.6.tgz | |
sudo mv spark-1.6.1-bin-hadoop2.6 spark | |
cd | |
Step 5 : Update .bashrc file with following contents | |
#SPARK VARIABLES START | |
export SPARK_HOME=/usr/local/spark | |
export PATH=$PATH:$SPARK_HOME/bin | |
#SPARK VARIABLES END | |
$cd | |
$nano .bashrc | |
***PASTE ABOVE MENTIONED CONTENT IN THE FILE ANYWHERE*** | |
press CTRL + X | |
press Y | |
press ENTER | |
Step 5 : SPARK Installation Verification | |
For verifying SPARK installation, you can run following command. | |
$spark-shell | |
This completed SPARK Installation. | |
Thanks for having a read. | |
Cheers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This file is used for installing Spark 1.6.1 on Ubuntu 14.04 compatible with Hadoop 2.6.0 and Scala 2.11.7