I am trying to teach myself Spark through Scala using Intellij on Windows. I'm doing this on a single machine, and I would like to start multiple workers on the single machine to simulate a cluster. I read this page where it says that
"The launch scripts do not currently support Windows. To run a Spark cluster on Windows, start the master and workers by hand."
I don't know what it means to start the masters and workers by hand. Could anyone help? Many thanks for any help/suggestions.
To manually start Spark Master, run below command from %SPARK_HOME%\bin
spark-class org.apache.spark.deploy.master.Master
Above command will also print master URL like spark://ip:port
Master UI can be accessed at localhost:8080
To start Spark Worker, run
spark-class org.apache.spark.deploy.worker.Worker spark://ip:port
Now if you refresh Master UI, you can see the new worker listed under Workers section.
Repeat the command to add multiple workers to the same master.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With