spark-submit報錯java.lang.IllegalStateException: User did not initialize spark context!

在IDEA上編寫spark程序,打成jar包之後,上傳到服務器,然後以yarn cluster模式提交:bin/spark-submit --class com.BRC.spark.WordCount --master yarn --deploy-mode cluster ./wordcount-1.0-SNAPSHOT.jar hdfs://test-szzt01:8020/test/hello
相關文章
相關標籤/搜索