aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/cluster-overview.md22
-rw-r--r--docs/quick-start.md10
2 files changed, 19 insertions, 13 deletions
diff --git a/docs/cluster-overview.md b/docs/cluster-overview.md
index dcc0630426..b011679fed 100644
--- a/docs/cluster-overview.md
+++ b/docs/cluster-overview.md
@@ -73,30 +73,34 @@ the bin directory. This script takes care of setting up the classpath with Spark
dependencies, and can support different cluster managers and deploy modes that Spark supports.
It's usage is
- ./bin/spark-submit <app jar> --class path.to.your.Class [other options..]
+ ./bin/spark-submit --class path.to.your.Class [options] <app jar> [app options]
-To enumerate all options available to `spark-submit` run it with the `--help` flag.
-Here are a few examples of common options:
+When calling `spark-submit`, `[app options]` will be passed along to your application's
+main class. To enumerate all options available to `spark-submit` run it with
+the `--help` flag. Here are a few examples of common options:
{% highlight bash %}
# Run application locally
-./bin/spark-submit my-app.jar \
+./bin/spark-submit \
--class my.main.ClassName
- --master local[8]
+ --master local[8] \
+ my-app.jar
# Run on a Spark cluster
-./bin/spark-submit my-app.jar \
+./bin/spark-submit \
--class my.main.ClassName
--master spark://mycluster:7077 \
--executor-memory 20G \
- --total-executor-cores 100
+ --total-executor-cores 100 \
+ my-app.jar
# Run on a YARN cluster
-HADOOP_CONF_DIR=XX /bin/spark-submit my-app.jar \
+HADOOP_CONF_DIR=XX /bin/spark-submit \
--class my.main.ClassName
--master yarn-cluster \ # can also be `yarn-client` for client mode
--executor-memory 20G \
- --num-executors 50
+ --num-executors 50 \
+ my-app.jar
{% endhighlight %}
### Loading Configurations from a File
diff --git a/docs/quick-start.md b/docs/quick-start.md
index 68afa6e1bf..64996b52e0 100644
--- a/docs/quick-start.md
+++ b/docs/quick-start.md
@@ -179,9 +179,10 @@ $ sbt package
[info] Packaging {..}/{..}/target/scala-2.10/simple-project_2.10-1.0.jar
# Use spark-submit to run your application
-$ YOUR_SPARK_HOME/bin/spark-submit target/scala-2.10/simple-project_2.10-1.0.jar \
+$ YOUR_SPARK_HOME/bin/spark-submit \
--class "SimpleApp" \
- --master local[4]
+ --master local[4] \
+ target/scala-2.10/simple-project_2.10-1.0.jar
...
Lines with a: 46, Lines with b: 23
{% endhighlight %}
@@ -272,9 +273,10 @@ $ mvn package
[INFO] Building jar: {..}/{..}/target/simple-project-1.0.jar
# Use spark-submit to run your application
-$ YOUR_SPARK_HOME/bin/spark-submit target/simple-project-1.0.jar \
+$ YOUR_SPARK_HOME/bin/spark-submit \
--class "SimpleApp" \
- --master local[4]
+ --master local[4] \
+ target/simple-project-1.0.jar
...
Lines with a: 46, Lines with b: 23
{% endhighlight %}