[SPARK-21498][Examples] quick start -> one py demo have some bug in code#18722
[SPARK-21498][Examples] quick start -> one py demo have some bug in code#18722lizhaoch wants to merge 6 commits into
Conversation
I find a bug about 'quick start',and created a new issues,Sean Owen let me to make a pull request, and I do
|
Can you please fix the PR title, also update the PR description to be more meaningful. |
|
|
||
| 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() |
There was a problem hiding this comment.
Not a big deal at all but could we remove the trailing space at the end?
There was a problem hiding this comment.
While we are here, would you mind fixing
-
424L -
(e.g. `pip instal pyspark`->(e.g., `pip install pyspark`) -
424L -
spark-submit->`spark-submit` -
427L -
# Use spark-submit to run your application-># Use Python interpeter to run your applicationfor Python interpreter example
by apache#18722,Hyukjin Kwon pointed out some places to modify, I did it
|
OK,I have done |
by apache#18722,Hyukjin Kwon pointed out some places to modify,I did it.
| Lines with a: 46, Lines with b: 23 | ||
| {% endhighlight %} | ||
|
|
||
|
|
There was a problem hiding this comment.
Let's revert removing a newline here. Sounds unrelated.
There was a problem hiding this comment.
so many new lines , i did again
|
|
||
| {% highlight bash %} | ||
| # Use spark-submit to run your application | ||
| # Use the Python Interpreter to run your application |
There was a problem hiding this comment.
I don't think we should capitalise "interpreter".
| {% 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 instal pyspark` you can run your application with the regular Python Interpreter or use the provided 'spark-submit' as you prefer. |
There was a problem hiding this comment.
(e.g., `pip instal pyspark` -> (e.g., `pip install pyspark`)
as Gyukjin Kwon says,lost a 'l'
|
Test build #3849 has finished for PR 18722 at commit
|
| {% 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. |
There was a problem hiding this comment.
(e.g., `pip install pyspark` -> (e.g., `pip install pyspark`)
|
|
||
| {% highlight bash %} | ||
| # Use spark-submit to run your application | ||
| # Use the Python Interpreter to run your application |
There was a problem hiding this comment.
Interpreter -> interpeter. I think it is Python interpreter.
|
@lizhaoch, Could you double check #18722 (review)? I am repeating the same comments. |
lizhaoch
left a comment
There was a problem hiding this comment.
perfect thks Hyukjin Kwon
by Hyukjin Kwon ,we check three places, and fix all
lizhaoch
left a comment
There was a problem hiding this comment.
I think is ok now ,thks Hyukjin Kwon
| {% 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. |
There was a problem hiding this comment.
others look good but for the last one ...
pip install pyspark` -> pip install pyspark`) (missing closing parenthesis).
There was a problem hiding this comment.
submit again ,you are so careful,so good
that lookls ok
| {% endhighlight %} | ||
|
|
||
| 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. | ||
| 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. |
OMG OMG OMG .......
|
LGTM |
|
Test build #3851 has finished for PR 18722 at commit
|

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.