-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21498][Examples] quick start -> one py demo have some bug in code #18722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/quick-start.md
Outdated
|
|
||
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big deal at all but could we remove the trailing space at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about master?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert removing a newline here. Sounds unrelated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so many new lines , i did again
docs/quick-start.md
Outdated
|
|
||
| {% highlight bash %} | ||
| # Use spark-submit to run your application | ||
| # Use the Python Interpreter to run your application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should capitalise "interpreter".
docs/quick-start.md
Outdated
| {% 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(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
|
docs/quick-start.md
Outdated
| {% 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(e.g., `pip install pyspark` -> (e.g., `pip install pyspark`)
docs/quick-start.md
Outdated
|
|
||
| {% highlight bash %} | ||
| # Use spark-submit to run your application | ||
| # Use the Python Interpreter to run your application |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think is ok now ,thks Hyukjin Kwon
lizhaoch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment again
docs/quick-start.md
Outdated
| {% 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
others look good but for the last one ...
pip install pyspark` -> pip install pyspark`) (missing closing parenthesis).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submit again ,you are so careful,so good
that lookls ok
docs/quick-start.md
Outdated
| {% 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interpreter was fine ...
OMG OMG OMG .......
|
LGTM |
|
Test build #3851 has finished for PR 18722 at commit
|
lizhaoch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok

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.