Skip to content

Conversation

@lizhaoch
Copy link
Contributor

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.

I find a bug about 'quick start',and created a new issues,Sean Owen  let
me to make a pull request, and I do
@jerryshao
Copy link
Contributor

Can you please fix the PR title, also update the PR description to be more meaningful.

@lizhaoch lizhaoch changed the title JIRA-SPARK-21498-quick start -> one py demo have some bug in code [SPARK-21498]-quick start -> one py demo have some bug in code Jul 24, 2017
@lizhaoch lizhaoch changed the title [SPARK-21498]-quick start -> one py demo have some bug in code [SPARK-21498][Examples]quick start -> one py demo have some bug in code Jul 24, 2017
@lizhaoch lizhaoch changed the title [SPARK-21498][Examples]quick start -> one py demo have some bug in code [SPARK-21498][Examples] quick start -> one py demo have some bug in code Jul 24, 2017
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


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()
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about master?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that should be fine.

it is described below and this looks doing the same thing with equivalent Scala / Java examples here.

Copy link
Member

@HyukjinKwon HyukjinKwon left a 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 application for Python interpreter example

by apache#18722,Hyukjin Kwon pointed out some places to modify, I did it
@lizhaoch
Copy link
Contributor Author

OK,I have done

lizhaoch added a commit to lizhaoch/spark that referenced this pull request Jul 25, 2017
by apache#18722,Hyukjin Kwon pointed out some places to modify,I did it.
Lines with a: 46, Lines with b: 23
{% endhighlight %}


Copy link
Member

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.

Copy link
Contributor Author

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


{% highlight bash %}
# Use spark-submit to run your application
# Use the Python Interpreter to run your application
Copy link
Member

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".

{% 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.
Copy link
Member

@HyukjinKwon HyukjinKwon Jul 25, 2017

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'
@SparkQA
Copy link

SparkQA commented Jul 25, 2017

Test build #3849 has finished for PR 18722 at commit 77142b5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

{% 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.
Copy link
Member

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`)


{% highlight bash %}
# Use spark-submit to run your application
# Use the Python Interpreter to run your application
Copy link
Member

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.

@HyukjinKwon
Copy link
Member

@lizhaoch, Could you double check #18722 (review)? I am repeating the same comments.

Copy link
Contributor Author

@lizhaoch lizhaoch left a 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
Copy link
Contributor Author

@lizhaoch lizhaoch left a 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

Copy link
Contributor Author

@lizhaoch lizhaoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment again

{% 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.
Copy link
Member

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).

Copy link
Contributor Author

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
{% 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.
Copy link
Member

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 .......
@HyukjinKwon
Copy link
Member

LGTM

@SparkQA
Copy link

SparkQA commented Jul 25, 2017

Test build #3851 has finished for PR 18722 at commit a31cbd8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Contributor Author

@lizhaoch lizhaoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@asfgit asfgit closed this in 996a809 Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants