Spark - How to run a standalone cluster locally

前端 未结 4 2045
别那么骄傲
别那么骄傲 2021-01-31 10:45

Is there the possibility to run the Spark standalone cluster locally on just one machine (which is basically different from just developing jobs locally (i.e., lo

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 11:38

    More simply,

    ./sbin/start-all.sh
    

    On your local machine there will be master and one worker launched.

    ./bin/spark-submit  \
    --class org.apache.spark.examples.SparkPi   \
    --master spark://localhost:7077  \
    examples/jars/spark-examples_2.12-3.0.1.jar 10000
    

    A sample application is submitted. For monitoring via Web UI:

    Master UI:      http://localhost:8080
    Worker UI:      http://localhost:8081
    Application UI: http://localhost:4040  
    

提交回复
热议问题