Your submit command is not correct. The confs should comme before the .py
file. See Launching Applications with spark-submit:
./bin/spark-submit
--class <main-class>
--master <master-url>
--deploy-mode <deploy-mode>
--conf <key>=<value>
... # other options
<application-jar>
[application-arguments]
[...] For Python applications, simply pass a .py
file in the place of <application-jar>
instead of a JAR, and add Python .zip
, .egg
or .py
files to the search path with --py-files
.
This is said, your command shoud be like this:
spark-submit --name "My app"
--master "local[*]"
--driver-memory 12g
--conf spark.executor.memory=12g
/path_to/main.py
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…