The first thing that I always hear from my participants (in most of my Apache Spark training sessions) is how to practice Scala coding for Apache Spark in a 4GB RAM laptop. My usual answer is using Eclipse by adding a Scala Plugin.
In this section of the Blog, we will learn how to setup the Scala developer environment for practicing Apache Spark using Eclipse.
Since we are using Eclipse, you can perform the same on Windows, Linux or Mac.
However, my tutorial will be restricted to setting up the environment only on a Windows machine.
Step 1: Download and Install Oracle Java 8 (64-bit) in Windows machine
In case the above direct link doesn’t work, get the link by visiting the page
Step 2: Download Eclipse. I personally use Eclipse Luna. Download Eclipse Luna (64-bit) from
Step 3: Start Eclipse and ensure its running smoothly. Incase if you get the below error screen, ensure your Java and Eclipse is compatible with each other in-terms of 64-bit and 32-bit. In this case, mostly the error will be due 64-bit & 32-bit inter-compatibility error of JDK and Eclipse.
Step 4: Open Eclipse and Install Scala IDE Plugin. In some case, if you find challenging to install Scala Plugin, you can download ScalaEclipse from http://scala-ide.org/download/sdk.html
- Open Eclipse<br>
- Click on Help Menu > Install New Software<br>
- Click on Add button. <br>
- Enter the Details as given below:
Name: Scala-IDE Location: http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site
- Click OK. Once resolved, select “Scala IDE forEclipse”.<br>
- Click Next > Next > Accept the License Agreement > Finish
Installation and configuration might take some time. This is subject to your relative internet speed. Once the installation is complete, the Eclipse will restart and can start coding in Scala Perspective.