Why is this simple Spark program not utlizing multiple cores?

前端 未结 4 1129
情深已故
情深已故 2021-02-10 01:39

So, I\'m running this simple program on a 16 core multicore system. I run it by issuing the following.

spark-submit --master local[*] pi.py

And

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-10 02:25

    I tried the method mentioned by @Svend, but still does not work.

    The following works for me:

    Do NOT use the local url, for example:

    sc = SparkContext("local", "Test App").

    Use the master URL like this:

    sc = SparkContext("spark://your_spark_master_url:port", "Test App")

提交回复
热议问题