1. 程式人生 > >Master yarn-cluster is deprecated since 2.0. Please use master "yarn" with specified deploy mode

Master yarn-cluster is deprecated since 2.0. Please use master "yarn" with specified deploy mode

使用下面命令,

bin/spark-submit --class SimpleApp --master yarn-cluster /home/zzhan/workspace/jobs/sparkdemo_2.11-0.1.jar

會產生下面的告警資訊:

Master yarn-cluster is deprecated since 2.0. Please use master "yarn" with specified deploy mode instead.

使用新命令替換之

bin/spark-submit --class SimpleApp --master yarn --deploy
-mode cluster /home/zzhan/workspace/jobs/sparkdemo_2.11-0.1.jar