Installation of spark-1.1.0-bin-hadoop2.4.tgz

Source: Internet
Author: User
Apache spark1.1.0 deployment and development environment setup-Mark Lin

0. Prepare

For the purpose of learning, this article deploys spark in a virtual machine. Install the following software on a virtual machine:

  • Ubuntu 14.04
  • Hadoop-2.4.0.tar.gz
  • Jdk-7u67-linux-x64.tar.gz
  • Scala-2.10.4.tgz
  • Spark-1.1.0-bin-hadoop2.4.tgz

1. Install JDK

....

2. install and configure SSH

....

3. Install hadoop2.4.0

....

4. Install Scala

@ Download the compiled spark file and view the Pom. xml file to get the scala version;

@ Download scala:

@ Decompress and set the environment variables:

Source/etc/profile

@ Test scala:

[[email protected] local]# source /etc/profile[[email protected] local]# scala -versionScala code runner version 2.10.4 -- Copyright 2002-2013, LAMP/EPFL
5. Install spark

@ Decompress and set Environment Variables

@ $ Spark_home/CONF/spark-env.sh

export SCALA_HOME=/usr/local/scalexport JAVA_HOME=/usr/local/jdkexport SPARK_MASTER_IP=localhostexport SPARK_WORKER_MEMORY=1000m
6. Spark startup and testing:

Start:

# To the spark installation directory: sbin/start-all.sh

Test:

bin/run-example SparkPi



Installation of spark-1.1.0-bin-hadoop2.4.tgz

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.