You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mark Hamstra (JIRA)" <ji...@apache.org> on 2014/05/30 19:59:02 UTC
[jira] [Updated] (SPARK-1974) Most examples fail at startup because
spark.master is not set
[ https://issues.apache.org/jira/browse/SPARK-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hamstra updated SPARK-1974:
--------------------------------
Fix Version/s: 1.0.1
> Most examples fail at startup because spark.master is not set
> -------------------------------------------------------------
>
> Key: SPARK-1974
> URL: https://issues.apache.org/jira/browse/SPARK-1974
> Project: Spark
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.0.0
> Reporter: Sean Owen
> Fix For: 1.0.1
>
>
> Most example code has a few lines like:
> {code}
> val sparkConf = new SparkConf().setAppName("Foo")
> val sc = new SparkContext(sparkConf)
> {code}
> The SparkContext constructor throws a SparkException if spark.master is not set though, so this fails immediately.
> What would be preferred -- let spark.master default to "local\[2\]"? or change all examples to call:
> {code}
> new SparkContext("local[2]", "Foo")
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)