Installation and configuration of Hadoop pseudo-distributed-----spark

Source: Internet
Author: User

The Hadoop environment has been set up in the previous chapters, this section focuses on building the spark platform on Hadoop 1 Download the required installation package

1) Download the spark installation package 2) Download the Scala installation package and unzip the installation package This example takes the following version as an example

2 Configuring environment variables

Use the command sudo gedit/etc/profile to configure the following environment variables


3 Viewing the Scala version

4 Configuring Spark

Copy Spark-env.sh.template to spark-env.sh configure the following variables

5 starting Hadoop and spark clusters 5.1 Starting a Hadoop cluster

1) SSH localhost

2) Hadoop Namenode-format (multiple formatting may cause Datanode to start, which is required to view the log NameID and dataid configuration of the same number)

3) start-all.sh input JPS appears as shown below to start correctly


5.2 Launching the spark cluster

1) Enter Spark's sbin directory input./start-all.sh appears as shown in the following image to start correctly



6 testing Spark

Enter the Spark-shell console of the Spark's Bin directory



7 monitoring cluster status using Web pages






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.