You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shashwat Anand (JIRA)" <ji...@apache.org> on 2018/01/20 14:32:00 UTC

[jira] [Commented] (SPARK-23164) Documentation error in quick-start

    [ https://issues.apache.org/jira/browse/SPARK-23164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16333198#comment-16333198 ] 

Shashwat Anand commented on SPARK-23164:
----------------------------------------

[~srowen]  Got it.  Thanks. 

> Documentation error in quick-start
> ----------------------------------
>
>                 Key: SPARK-23164
>                 URL: https://issues.apache.org/jira/browse/SPARK-23164
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.2.1
>            Reporter: Shashwat Anand
>            Priority: Major
>
> In Apache Spark quick-start [docs|https://spark.apache.org/docs/latest/quick-start.html], in the Self-Contained application section, python example is wrong.  
> {code:java}
> spark = SparkSession.builder().appName(appName).master(master).getOrCreate() 
> {code}
> should be replaced by,
> {code:java}
> spark = SparkSession.builder.appName("SimpleApp").getOrCreate()
> {code}
> since Builder object is not callable.
> There is a fix in [spark/doc|https://github.com/apache/spark/blob/master/docs/quick-start.md] already which is not reflected on spark website.  When I tried to look at the source of [spark-website|https://github.com/apache/spark-website], I assumed anything which is rendered in docs/ section of the site lies in spark and not in spark-website.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org