Installing the JDK in a 1.ubantu environment
My JDK is installed in the/HOME/FUQIANG/JAVA/JVM directory, Scala,spark is in this directory, mainly the settings of the JDK environment variable
$ sudo gedit/etc/profile
At the very end of the document, add
Export java_home=/home/fuqiang/java/jvm/jdk1.7.0_79
Export classpath=.: $JAVA _home/lib: $JAVA _home/jre/lib: $CLASSPATH
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
JDK environment variable configuration completed
Console input
$ source/etc/profile
Java-version The following information appears, the JDK environment variable configuration is complete
2.Scala Environment Configuration
Download Scala and unzip it, the download version is scala-2.10-4
Scala environment variable Configuration
Export scala_home=/home/fuqiang/java/jvm/scala-2.10.4
After adding scala_home in path, the result is as follows:
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $SCALA _home/bin: $PATH
3 Spark Environment Configuration
Download spark-1.6.1-bin-hadoop2.6 Unzip
Configuring the Environment in/etc/profile
Export spark_home=/home/fuqiang/java/jvm/spark-1.6.1-bin-hadoop2.6
After adding spack_home in path, the result is as follows:
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $SCALA _home/bin: $SPARK _home/bin: $PATH
Spark stand-alone environment installation