Preliminary use of the Scala IDE for eclipse download, installation, and WordCount

Source: Internet
Author: User
Tags scala ide

We know that the IDE has a number of selected versions for development. As most of us often use is as follows.

Eclipse * Version

Eclipse * Download

And we know that for the Scala development of Spark, there's a specially designed eclipse for it,Scala IDE for Eclipse

  

1. Scala IDE for eclipse download

http://scala-ide.org/

2. Installation of Scala IDE for Eclipse

To decompress

3. Preliminary use of Scala IDE for Eclipse WordCount

Before that, install Java and Scala in the local area first.

By default it turned into Scala 2.11.8.

This must be changed!

Scala2.11.8 (Default version)--------> scala2.10.4 (Our Version)

The first step: Modify the dependent Scala version, from scala2.11.* to scala2.10.*.

Here is the compatible version, no problem. Scala2.10.6 and our scala2.10.4 is OK!!!

Step Two: Add the spark1.6.0 jar file dependency

Http://spark.apache.org/downloads.html

Http://www.apache.org/dyn/closer.lua/spark/spark-1.6.2/spark-1.6.2-bin-hadoop2.6.tgz

Step three: Find the dependent Sparkjar file and import it into the jar dependency of Scala IDE for Eclipse

Fourth step: Under SRC, create a spark project package

Fifth step: Create the Scala entry class

Preliminary use of the Scala IDE for eclipse download, installation, and WordCount

Related Article

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.