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
- [x] Move all of them into subpackages of org.apache.spark.examples (right now some are in org.apache.spark.streaming.examples, for instance, and others are in org.apache.spark.examples.mllib)
- [x] Move Python examples into examples/src/main/python
- [x] Update docs to reflect these changes
Author: Sandeep <[email protected]>
This patch had conflicts when merged, resolved by
Committer: Matei Zaharia <[email protected]>
Closes#571 from techaddict/SPARK-1637 and squashes the following commits:
47ef86c [Sandeep] Changes based on Discussions on PR, removing use of RawTextHelper from examples
8ed2d3f [Sandeep] Docs Updated for changes, Change for java examples
5f96121 [Sandeep] Move Python examples into examples/src/main/python
0a8dd77 [Sandeep] Move all Scala Examples to org.apache.spark.examples (some are in org.apache.spark.streaming.examples, for instance, and others are in org.apache.spark.examples.mllib)
Copy file name to clipboardExpand all lines: docs/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,11 @@ right version of Scala from [scala-lang.org](http://www.scala-lang.org/download/
24
24
25
25
# Running the Examples and Shell
26
26
27
-
Spark comes with several sample programs. Scalaand Java examples are in the `examples` directory, and Python examples are in `python/examples`.
27
+
Spark comes with several sample programs. Scala, Java and Python examples are in the `examples/src/main` directory.
28
28
To run one of the Java or Scala sample programs, use `./bin/run-example <class> <params>` in the top-level Spark directory
29
29
(the `bin/run-example` script sets up the appropriate paths and launches that program).
30
30
For example, try `./bin/run-example org.apache.spark.examples.SparkPi local`.
31
-
To run a Python sample program, use `./bin/pyspark <sample-program> <params>`. For example, try `./bin/pyspark ./python/examples/pi.py local`.
31
+
To run a Python sample program, use `./bin/pyspark <sample-program> <params>`. For example, try `./bin/pyspark ./examples/src/main/python/pi.py local`.
32
32
33
33
Each example prints usage help when run with no parameters.
Copy file name to clipboardExpand all lines: docs/python-programming-guide.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,9 +161,9 @@ some example applications.
161
161
162
162
# Where to Go from Here
163
163
164
-
PySpark also includes several sample programs in the [`python/examples` folder](https://github.com/apache/spark/tree/master/python/examples).
164
+
PySpark also includes several sample programs in the [`examples/src/main/python` folder](https://github.com/apache/spark/tree/master/examples/src/main/python).
165
165
You can run them by passing the files to `pyspark`; e.g.:
0 commit comments