You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-docs.md
+48-3Lines changed: 48 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ DC/OS Spark includes:
18
18
*[Mesos Cluster Dispatcher][2]
19
19
*[Spark History Server][3]
20
20
* DC/OS Spark CLI
21
+
* Interactive Spark shell
21
22
22
23
## Benefits
23
24
@@ -59,6 +60,10 @@ dispatcher and the history server
59
60
60
61
$ dcos spark run --submit-args="--class org.apache.spark.examples.SparkPi http://downloads.mesosphere.com.s3.amazonaws.com/assets/spark/spark-examples_2.10-1.4.0-SNAPSHOT.jar 30"
61
62
63
+
1. Run a Python Spark job:
64
+
65
+
$ dcos spark run --submit-args="https://downloads.mesosphere.com/spark/examples/pi.py 30"
66
+
62
67
1. View your job:
63
68
64
69
Visit the Spark cluster dispatcher at
@@ -508,6 +513,10 @@ more][13].
508
513
509
514
$ dcos spark run --submit-args=`--class MySampleClass http://external.website/mysparkapp.jar 30`
510
515
516
+
Or, for a Python job
517
+
518
+
$ dcos spark run --submit-args="http://external.website/mysparkapp.py 30"
519
+
511
520
`dcos spark run` is a thin wrapper around the standard Spark
512
521
`spark-submit` script. You can submit arbitrary pass-through options
513
522
to this script via the `--submit-args` options.
@@ -555,6 +564,42 @@ To set Spark properties with a configuration file, create a
555
564
`spark-defaults.conf` file and set the environment variable
556
565
`SPARK_CONF_DIR` to the containing directory. [Learn more][15].
557
566
567
+
<aname="pysparkshell"></a>
568
+
# Interactive Spark Shell
569
+
570
+
You can run Spark commands interactively in the Spark shell. The Spark shell is available
571
+
in either Scala or Python.
572
+
573
+
1. SSH into a node in the DC/OS cluster. [Learn how to SSH into your cluster and get the agent node ID](https://dcos.io/docs/latest/administration/access-node/sshcluster/).
0 commit comments