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

Apache Spark commented on SPARK-1550:
-------------------------------------

User 'JoshRosen' has created a pull request for this issue:
https://github.com/apache/spark/pull/1606

> Successive creation of spark context fails in pyspark, if the previous 
> initialization of spark context had failed.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-1550
>                 URL: https://issues.apache.org/jira/browse/SPARK-1550
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 0.9.2, 1.0.0, 1.0.1
>            Reporter: Prabin Banka
>            Assignee: Josh Rosen
>              Labels: pyspark, sparkcontext
>
> For example;-
> In PySpark, if we try to initialize spark context with insufficient 
> arguments, >>>sc=SparkContext('local')
> it fails with an exception 
> Exception: An application name must be set in your configuration
> This is all fine. 
> However, any successive creation of spark context with correct arguments, 
> also fails,
> >>>s1=SparkContext('local', 'test1')
> AttributeError: 'SparkContext' object has no attribute 'master'



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to