Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/8071#discussion_r36669833
--- 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 --
I agree we should have a preferred method and update docs to match. I
think the existing docs just never were fully updated. There wouldn't be a
reason to have the --deploy-mode if we used yarn-client/yarn-cluster. There was
discussion about it back then.
cc @sryza
---
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]