Spark compiles are currently based on Scala 2.10.4, and the Scala plugin version is also selected for 2.10.4, otherwise eclipse will report a bug that Spark's jar package and Scala version are incompatible.
Scala IDE for eclipse different versions of Eclipse corresponding plug-ins are also different
: http://scala-ide.org/download/prev-stable.html
Eclipse 3.8-4.3 (Juno and Kepler) for Scala 2.11.2http://download.scala-ide.org/sdk/helium/e38/scala211/stable/ SiteFor Scala 2.10.4http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site
Select Eclipse4.2 Juno for plug-in installation
Select Help->install new software in eclipse
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/1D/wKiom1V0D_6z7IKxAAGtudDLi8U270.jpg "title=" Blog.jpg "alt=" Wkiom1v0d_6z7ikxaagtuddli8u270.jpg "/>
Add plugin download link after installation, you will be prompted to restart Eclipse
Create a new Scala Project project test to make it work correctly and load the relevant libray for Scala 2.10.4 in addition to loading the JRE Library in Project engineering
Object TESTD {def main (args:array[string]): Unit = {val array = array ("Scala 2.10.4", "Spark 1.1.0") Array.fore Ach (println)}}
Run as a Java program, which is compiled into a class file that runs in the JVM
Scala 2.10.4spark 1.1.0
This article from the "Down-to-earth, look at the Stars" blog, please be sure to keep this source http://xubcing.blog.51cto.com/3502962/1659428
Install the Scala2.10.4 plugin under Eclipse