Repository: spark Updated Branches: refs/heads/master 4f77c0623 -> 996a809c5
[SPARK-21498][EXAMPLES] quick start -> one py demo have some bug in code I find a bug about 'quick start',and created a new issues,Sean Owen let me to make a pull request, and I do ## What changes were proposed in this pull request? (Please fill in changes proposed in this fix) ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Trueman <[email protected]> Author: lizhaoch <[email protected]> Closes #18722 from lizhaoch/master. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/996a809c Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/996a809c Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/996a809c Branch: refs/heads/master Commit: 996a809c5eac61578850ebf5dcd91070458e7e47 Parents: 4f77c06 Author: Trueman <[email protected]> Authored: Tue Jul 25 10:53:50 2017 +0100 Committer: Sean Owen <[email protected]> Committed: Tue Jul 25 10:53:50 2017 +0100 ---------------------------------------------------------------------- docs/quick-start.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/996a809c/docs/quick-start.md ---------------------------------------------------------------------- diff --git a/docs/quick-start.md b/docs/quick-start.md index cb5211a..7cb3f75 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -389,7 +389,7 @@ As an example, we'll create a simple Spark application, `SimpleApp.py`: from pyspark.sql import SparkSession logFile = "YOUR_SPARK_HOME/README.md" # Should be some file on your system -spark = SparkSession.builder().appName(appName).master(master).getOrCreate() +spark = SparkSession.builder.appName("SimpleApp").getOrCreate() logData = spark.read.text(logFile).cache() numAs = logData.filter(logData.value.contains('a')).count() @@ -421,16 +421,15 @@ $ YOUR_SPARK_HOME/bin/spark-submit \ Lines with a: 46, Lines with b: 23 {% endhighlight %} -If you have PySpark pip installed into your enviroment (e.g. `pip instal pyspark` you can run your application with the regular Python interpeter or use the provided spark-submit as you prefer. +If you have PySpark pip installed into your enviroment (e.g., `pip install pyspark`), you can run your application with the regular Python interpreter or use the provided 'spark-submit' as you prefer. {% highlight bash %} -# Use spark-submit to run your application +# Use the Python interpreter to run your application $ python SimpleApp.py ... Lines with a: 46, Lines with b: 23 {% endhighlight %} - </div> </div> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
