Linux commands involved in setting up the Spark Environment

Source: Internet
Author: User

Linux commands involved in setting up the Spark Environment

Linux commands involved in setting up the Spark environment (simple and easy to use)

From one server responsible for content to another server: scp jdk-6u37-linux-x64.bin spark@10.126.45.56:/home/spark/opt

Tar compression and decompression file: Compressed tar-cvf java.tar.gz java/decompress: tar-xvf java.tar.gz

Configure java environment variables:

Go to various places to download jdk packages: jdk-6u37-linux-x64.bin, modify File Execution permissions: chmod a + x jdk-6u37-linux-x64.bin, install:./jdk-6u37-linux-x64.bin


Edit vi ~ /. Bash_profile, add content

# Set java env
Export JAVA_HOME =/home/spark/opt/java/jdk1.6.0 _ 37


Export CLASSPATH =.: $ JAVA_HOME/jre/lib: $ JAVA_HOME/lib/tools. jar

PATH = $ PATH: $ HOME/bin: $ JAVA_HOME/bin

Export PATH

Save and source ~ /. Bash_profile

[Spark @ S1PA11 ~] $ Ifconfig
-Bash: ifconfig: command not found ---> vi ~ /. Bashrc

Add. bashrc files in the home directory of a common user.
Export PATH = $ PATH:/sbin
Then execute
Source. bashrc can execute the ifconfig command.

-------------------------------------- Split line --------------------------------------

Spark1.0.0 Deployment Guide

Install Spark0.8.0 in CentOS 6.2 (64-bit)

Introduction to Spark and its installation and use in Ubuntu

Install the Spark cluster (on CentOS)

Hadoop vs Spark Performance Comparison

Spark installation and learning

Spark Parallel Computing Model

-------------------------------------- Split line --------------------------------------

Spark details: click here
Spark: click here

This article permanently updates the link address:

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.