spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: Eclipse on spark
Date Mon, 26 Jan 2015 15:09:58 GMT
You can install IntelliJ IDE
<http://www.jetbrains.com/idea/features/scala.html> rather than eclipse
which has a lot more community support and features. Once you install it,
follow this simple post
<http://confluence.jetbrains.com/display/IntelliJIDEA/Scala> to get started
with scala. Now you have an IDE which works with Scala, Then for Spark Follow
the below steps:

*1. Install sbt plugins: *Goto File -> Settings -> Plugins -> Install
IntelliJ Plugins -> Search for sbt and install it
[image: Inline image 1]


*2. After sbt plugin install, restart intellij and Start New Scala sbt
project (File -> New Project -> Scala -> SBT*

*[image: Inline image 2]*

*[image: Inline image 3]*

*3. Now open up the build.sbt file and add the all the dependencies(Here
i'm adding spark 1.1.0 with hadoop 2.4.0 dependency)*

*[image: Inline image 4]*

*4. Now Create a new Scala class in src -> main -> scala and type in your
code.*

*[image: Inline image 6]*
*5. Right click and hit Run :)*

*[image: Inline image 7]*
*[image: Inline image 8]*

Thanks
Best Regards

On Mon, Jan 26, 2015 at 5:17 PM, vaquar khan <vaquar.khan@gmail.com> wrote:

> I am using SBT
> On 26 Jan 2015 15:54, "Luke Wilson-Mawer" <lukewilsonmawer@gmail.com>
> wrote:
>
>> I use this: http://scala-ide.org/
>>
>> I also use Maven with this archetype:
>> https://github.com/davidB/scala-archetype-simple. To be frank though,
>> you should be fine using SBT.
>>
>> On Sat, Jan 24, 2015 at 6:33 PM, riginos <samarasriginos@gmail.com>
>> wrote:
>>
>>> How to compile a Spark project in Scala IDE for Eclipse? I got many scala
>>> scripts and i no longer want to load them from scala-shell what can i do?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-spark-user-list.1001560.n3.nabble.com/Eclipse-on-spark-tp21350.html
>>> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
>>> For additional commands, e-mail: user-help@spark.apache.org
>>>
>>>
>>

Mime
View raw message