[Spark Asia Pacific Research Institute Series] the path to spark practice-Chapter 1 building a spark cluster (step 4) (4)

Source: Internet
Author: User

 

Restart idea:

Restart idea:

After restart, enter the following interface:

Step 4: Compile scala code in idea:

 

First, select "create new project" on the interface that we entered in the previous step ":

Select the "Scala" option in the list on the left:

To facilitate future development, select the "SBT" option on the right:

Click "Next" to go to the next step and set the name and directory of the scala project:

Click "finish" to create the project:

Because we have selected the "SBT" option before, idea intelligently helps us build SBT tools:

Click the project name "helloscala ":

 

It takes some time for idea to automatically install the SBT tool. It takes about five minutes for Jialin to install the SBT tool. After SBT is installed, SBT will automatically help us build some directories:

Right-click Scala under main under SRC and select "Scala class" under "new"

Input File Name:

Select kinde as "object ":

Click OK:

[Spark Asia Pacific Research Institute Series] the path to spark practice-Chapter 1 building a spark cluster (step 4) (4)

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.