Spark tutorial-building a spark cluster (1)

Source: Internet
Author: User

For more than 90% of people who want to learn spark, how to build a spark cluster is one of the greatest difficulties. To solve all the difficulties in building a spark cluster, jia Lin divides the spark cluster construction into four steps, starting from scratch, without any pre-knowledge, covering every detail of the operation, and building a complete spark cluster.

Build from scratchSparkClassic cluster:

Step 1: Build a hadoop standalone and pseudo-distributed environment;

Step 2: Construct a distributed hadoop cluster;

Step 3: Construct a distributed spark cluster;

Step 4: test the spark cluster;

 

This article is the first step in building a classic spark cluster. It starts from scratch to build a hadoop standalone version and a pseudo-distributed development environment, involving:

Develop basic software required by hadoop;

Install each software;

Configure the standalone mode of hadoop and run the wordcount example;

Configure the hadoop pseudo-distributed mode and run the wordcount example;

 

Step 1: Develop basic software required by hadoop

 

Our development environment is to build hadoop on Windows 7. At this time, we need vmwarevm, ubuntu iso image file, Java SDK support, Eclipse IDE platform, and hadoop installation package;

1, vmwarevirtual machine, here is the use of VMware Workstation 9.0.2 for windows, the specific is the https://my.vmware.com/cn/web/vmware/details? Downloadgroup = WKST-902-WIN & productid = 293 & rpid = 3526, as shown in:

Save the downloaded file locally, as shown in:

It can be seen that there is an additional keys.txt file, which is the sequence code required for vwware installation. You need to download it from the Internet;

2, ubuntu iso image file, home forest here to use the ubuntu-12.10-desktop-i386, specific: http://www.ubuntu.org.cn/download/desktop/alternative-downloads as shown in:

After the download, save it on the local computer as follows:

3, Java sdksupport, the use of the latest Java jdk-7u60-linux-i586.tar.gz ", the specific http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html as shown in:

Click Download to save it to the Ubuntu system, as shown in:

4. download the latest stable version of hadoop, download is hadoop-1.1.2-bin.tar.gz ", the specific official download for the http://mirrors.cnnic.cn/apache/hadoop/common/stable/ in the Local save:

 

 

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.