在配置yarn环境下的spark时,执行尚硅谷的以下命令发现报错,找不到这个也找不到那个,尚硅谷的代码是
bin/spark-submit \ --class org.apache.spark.examples.SparkPi \ --master yarn \ --deploy-mode cluster \ ./examples/jars/spark-examples_2.12-3.0.0.jar \ 10
正确代码是:
bin/spark-submit --master yarn --deploy-mode client --class org.apache.spark.examples.SparkPi /opt/module/spark-yarn/examples/jars/spark-examples_*.jar 10
去hadoop103::8088查看: