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
http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-windows-x64.exe?AuthParam=1496470609_b0842a3d84cdc3924c36b6872660312e
In case the above direct link doesn’t work, get the link by visiting the page
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Step 2: Download Eclipse. I personally use Eclipse Luna. Download Eclipse Luna (64-bit) from
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/luna/SR2/eclipse-jee-luna-SR2-win32-x86_64.zip
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.
Hi Prashant,
Please share your contact details so that we can contact you for any trainings Big Data.
Thanks & Regards
Kashinath
Mobile No. 9850812577
Hi Kashinath
You can contact me on prashant.nair2050@gmail.com
Mob:+91-8879416222
Stay tuned in this website for more updates and upcoming books and courses which I am authoring.
Regards