Spark stand-alone environment installation

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.