You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/03/18 01:35:59 UTC

git commit: [Spark-1261] add instructions for running python examples to doc overview page

Repository: spark
Updated Branches:
  refs/heads/master 796977acd -> 087eedca3


[Spark-1261] add instructions for running python examples to doc overview page

Author: Diana Carroll <dc...@cloudera.com>

Closes #162 from dianacarroll/SPARK-1261 and squashes the following commits:

14ac602 [Diana Carroll] typo in python example text
5121e3e [Diana Carroll] Add explanation of how to run Python examples to main doc overview page


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/087eedca
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/087eedca
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/087eedca

Branch: refs/heads/master
Commit: 087eedca32fd87bfe1629588091bd307d45e4a7c
Parents: 796977a
Author: Diana Carroll <dc...@cloudera.com>
Authored: Mon Mar 17 17:35:51 2014 -0700
Committer: Matei Zaharia <ma...@databricks.com>
Committed: Mon Mar 17 17:35:51 2014 -0700

----------------------------------------------------------------------
 docs/index.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/087eedca/docs/index.md
----------------------------------------------------------------------
diff --git a/docs/index.md b/docs/index.md
index c4f4d79..2331110 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -23,10 +23,12 @@ For its Scala API, Spark {{site.SPARK_VERSION}} depends on Scala {{site.SCALA_BI
 
 # Running the Examples and Shell
 
-Spark comes with several sample programs in the `examples` directory.
-To run one of the samples, use `./bin/run-example <class> <params>` in the top-level Spark directory
+Spark comes with several sample programs.  Scala and Java examples are in the `examples` directory, and Python examples are in `python/examples`.
+To run one of the Java or Scala sample programs, use `./bin/run-example <class> <params>` in the top-level Spark directory
 (the `bin/run-example` script sets up the appropriate paths and launches that program).
 For example, try `./bin/run-example org.apache.spark.examples.SparkPi local`.
+To run a Python sample program, use `./bin/pyspark <sample-program> <params>`.  For example, try `./bin/pyspark ./python/examples/pi.py local`.
+
 Each example prints usage help when run with no parameters.
 
 Note that all of the sample programs take a `<master>` parameter specifying the cluster URL