Skip to content

Commit 924f04c

Browse files
committed
Revert addition of --deploy-mode
1 parent d5fe17b commit 924f04c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/running-on-yarn.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,12 @@ Unlike in Spark standalone and Mesos mode, in which the master's address is spec
4343

4444
To launch a Spark application in yarn-cluster mode:
4545

46-
./bin/spark-submit --class path.to.your.Class --master yarn-cluster --deploy-mode cluster [options] <app jar> [app options]
46+
./bin/spark-submit --class path.to.your.Class --master yarn-cluster [options] <app jar> [app options]
4747

4848
For example:
4949

5050
$ ./bin/spark-submit --class org.apache.spark.examples.SparkPi \
5151
--master yarn-cluster \
52-
--deploy-mode cluster \
5352
--num-executors 3 \
5453
--driver-memory 4g \
5554
--executor-memory 2g \
@@ -69,10 +68,9 @@ In yarn-cluster mode, the driver runs on a different machine than the client, so
6968

7069
$ ./bin/spark-submit --class my.main.Class \
7170
--master yarn-cluster \
72-
--deploy-mode cluster \
7371
--jars my-other-jar.jar,my-other-other-jar.jar
7472
my-main-jar.jar
75-
[app arguments]
73+
app_arg1 app_arg2
7674

7775
# Debugging your Application
7876

0 commit comments

Comments
 (0)