To set up the environment locally, follow the steps listed next:
- 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
- Compile the code.
$ sbt compile
- 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: