Spark Learning III: Installing and Importing source code for spark schedule and idea

Source: Internet
Author: User

Spark Learning III: Installing and Importing source code for spark schedule and idea

tags (space delimited): Spark

    • Spark learns to install and import source code for three spark schedule and idea
      • Data location during an RDD operation
      • Two spark Schedule
      • Three idea import spark source

One, the data location during the RDD operation
[hadoop001@xingyunfei001 spark-1.3.0-bin-2.5.0]$ bin/spark-shell --master local[2]

Val Rdd = sc.textfile ("xx", 2)
Rdd.flatmap (. Split ("\ T")). Map ((, 1)). Reducebykey ((_ + _)). Saveastextfile

Stage-01
Part-01-Task-01:rdd.flatmap (. Split ("\ T")). Map ((, 1)). reduce
Part-02-Task-02:rdd.flatmap (. Split ("\ T")). Map ((, 1)). reduce
Stage-02
Part-01-Task-01:bykey ((_ + _)). Saveastextfile
Part-02-Task-02:bykey ((_ + _)). Saveastextfile

Rdd.cache

Two, Spark Schedule

Third, Idea import spark source code

1,bin/idea.sh Open Idea (progress bar click Cancel when entering)

2, integrated maven

3, import the source code

Spark Learning III: Installing and Importing source code for spark schedule and idea

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.