Spark - Error “A master URL must be set in your configuration” when submitting an app

后端 未结 16 1958
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-02 07:31

I have an Spark app which runs with no problem in local mode,but have some problems when submitting to the Spark cluster.

The error msg are as follows:



        
16条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 08:00

    I used this SparkContext constructor instead, and errors were gone:

    val sc = new SparkContext("local[*]", "MyApp")
    

提交回复
热议问题