mac 安装了zsh 通过 spark-submit 提交任务
bin/spark-submit \
--class org.apache.spark.examples.SparkPi \
--master local[2] \
./examples/jars/spark-examples_2.12-3.0.0.jar \
10
会提示 zsh: no matches found: local[2]
需要将 加上引号,即可正常执行任务
bin/spark-submit \
--class org.apache.spark.examples.SparkPi \
--master 'local[2]' \
./examples/jars/spark-examples_2.12-3.0.0.jar \
10
spark-submit 提交任务 zsh: no matches found: local[2]
最新推荐文章于 2023-12-24 00:20:06 发布