Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/8071#discussion_r36660708
--- Diff: docs/submitting-applications.md ---
@@ -48,6 +48,44 @@ Some of the commonly used options are:
* `application-jar`: Path to a bundled jar including your application and
all dependencies. The URL must be globally visible inside of your cluster, for
instance, an `hdfs://` path or a `file://` path that is present on all nodes.
* `application-arguments`: Arguments passed to the main method of your
main class, if any
+Alternatively, for submitting on yarn,
+
+{% highlight bash %}
+./bin/spark-submit \
+ --class <main-class>
+ --master <yarn-deploy-mode>
+ --conf <key>=<value> \
+ ... # other options
+ <application-jar> \
+ [application-arguments]
+{% endhighlight %}
+
+* `--master`: The --master parameter is either `yarn-client` or
`yarn-cluster`. Defaults to `yarn-client`
--- End diff --
actually I would rather see us use the --deploy-mode option to choose
cluster vs client and --master yarn.
Unless something has changed we kept yarn-cluster and yarn-client around
just for backwards compatibility.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]