The code does not run as follows ../bin/spark-submit --class org.apache.spark.examples.SparkPi \
--master yarn \ --deploy-mode cluster \ --verbose \ --num-executors 3 \ --driver-memory 4g \ --executor-memory 2g \ --executor-cores 1 \ ../lib/spark-examples*.jar \ 100 Exception in thread "main" java.lang.NullPointerException at org.apache.spark.deploy.yarn.Client$anonfun$logClusterResourceDetails$2.apply(Client.scala:109) at org.apache.spark.deploy.yarn.Client$anonfun$logClusterResourceDetails$2.apply(Client.scala:108) at org.apache.spark.Logging$class.logInfo(Logging.scala:58) However, when I removed "--deploy-mode cluster \" Exception disappear. I think with the "deploy-mode cluster" is running in yarn cluster mode, if not, the default will be run in yarn client mode. But why did yarn cluster get Exception? Thanks -- [email protected]|齐忠
