Sunday, March 6, 2016

Scala setup on Windows - Spark Scala

Scala is primary language of Apache Spark, so using Scala is good to learn Apache Spark. 
The Scala language can be installed on any UNIX-like or Windows system. To install Scala on Windows vs Spark, we need to do something as below.


Before installing Scala on your computer, you must install Java. 

Step 1: setup Java on your Windows machine.

After downloading Java and installed it, you must set JAVA environment variable and add path variable.
To check if Java is installed without mistakes, you can open windows command prompt (Win+R, type "cmd") 
and then type
  • java -version
  • javac -version
if you see something like the picture below, Java compiler is installed successfully


Step 2: Scala Setup for Spark



note: please make sure there is no space in your installation directory(e.g. you may install it in c:\scala, but you cannot install it in c:\Program Files\scala)
  • Well, you installed it and next step check scala 
  • Open new command prompt and type scala -version and you'll see the following


Videos tutorial



Congratulations, you have installed Scala on your Windows machine for using Apache Spark!

No comments:

Post a Comment

Followers