Setting up the Scala environment on the Command Line

To set up the environment locally, follow the steps listed next:

  1. Go to the root directory of Chapter 2, and choose the appropriate folder.
      $ cd /PATH/spark-ml/Chapter_02/breeze
Alternatively, choose the following:
      $ cd /PATH/spark-ml/Chapter_02/spark
  1. Compile the code.
      $ sbt compile
  1. Run the compiled code, and choose the program to run (classes shown depend on whether sbt run is executed in the Spark or Breeze folder).
      $ sbt run

Multiple main classes detected, select one to run:
....
Enter number: