Loading spark source code with IntelliJ

Source: Internet
Author: User

How to use IntelliJ to load spark source code

Reprint Annotated Original http://www.cnblogs.com/shenh062326/p/6189643.html

A suitable IDE editor is required to view the spark source code or to modify the spark source code, and the Spark source editor is the IntelliJ.

However, if using IntelliJ to load the spark source mode is not correct, there will be a lot of red dots, as shown, and a lot of code can not complete the jump, today I would like to show you how to use IntelliJ to load spark source code.

Loading spark code with IntelliJ

1. first download the spark code.

2. compile mvn-pyarn-dhadoop.version=2.6.0-dyarn.version=2.6.0-dskiptests-phive compile with mvn

3. after successful compilation, open IntelliJ, select File->new->project from Existing Sources.

4. Select the project directory and select Import Project from external Model->maven.

5. After selecting Next, add several items that need to be introduced in the Import Project window, such as.

6. After you have selected Next, you will need to wait for a period of time to set up index after opening the project.

7. After the completion of the effect, such as, can open all dependent jars and Class,intellij will not appear a lot of red dot!

This will be a happy code code.

Loading spark source code with IntelliJ

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.