You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Leonardo Colman Lopes (JIRA)" <ji...@apache.org> on 2019/01/07 21:14:00 UTC

[jira] [Created] (SPARK-26563) Quick Start documentation provides example that doesn't work (Java)

Leonardo Colman Lopes created SPARK-26563:
---------------------------------------------

             Summary: Quick Start documentation provides example that doesn't work (Java)
                 Key: SPARK-26563
                 URL: https://issues.apache.org/jira/browse/SPARK-26563
             Project: Spark
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 2.4.0
            Reporter: Leonardo Colman Lopes


In theĀ [Self-Containg Application|https://spark.apache.org/docs/latest/quick-start.html#self-contained-applications] page, the Java application won't work as shown.

Creating a spark session using

SparkSession spark = SparkSession.builder().appName("Simple Application").getOrCreate();

Doesn't work.
It must be created using

 SparkSession spark = SparkSession.builder().appName("Simple Application").config("spark.master", "local").getOrCreate();



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