- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 88字
- 2021-07-09 21:07:47
Setting up the Scala environment on the Command Line
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: