Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/1200#discussion_r14318513
--- Diff: docs/submitting-applications.md ---
@@ -42,10 +42,20 @@ Some of the commonly used options are:
* `--class`: The entry point for your application (e.g.
`org.apache.spark.examples.SparkPi`)
* `--master`: The [master URL](#master-urls) for the cluster (e.g.
`spark://23.195.26.187:7077`)
-* `--deploy-mode`: Whether to deploy your driver program within the
cluster or run it locally as an external client (either `cluster` or `client`)
+* `--deploy-mode`: Whether to deploy your driver on the worker nodes
(`cluster`) or locally as an external client (`client`) (default: `client`)*
* `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
+*In general, if you are hosting your own cluster, `cluster` mode provides
little benefit over its
--- End diff --
Some common deployment strategies are:
1. Run your application in "client mode" from a gateway machine it is
physically co-located with your Spark cluster.
2. Submit your application from a machine that is not co-located with the
Spark cluster (e.g. a personal laptop) and run the application in "cluster
mode".
---
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.
---