spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-19055) SparkSession initialization will be associated with invalid SparkContext when new SparkContext is created to replace stopped SparkContext
Date Tue, 03 Jan 2017 03:36:58 GMT

     [ https://issues.apache.org/jira/browse/SPARK-19055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Apache Spark reassigned SPARK-19055:
------------------------------------

    Assignee: Apache Spark

> SparkSession initialization will be associated with invalid SparkContext when new SparkContext
is created to replace stopped SparkContext
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-19055
>                 URL: https://issues.apache.org/jira/browse/SPARK-19055
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, SQL
>            Reporter: Liang-Chi Hsieh
>            Assignee: Apache Spark
>
> In SparkSession initialization, we store created the instance of SparkSession into a
class variable _instantiatedContext. Next time we can use SparkSession.builder.getOrCreate()
to retrieve the existing SparkSession instance.
> However, when the active SparkContext is stopped and we create another new SparkContext
to use, the existing SparkSession is still associated with the stopped SparkContext. So the
operations with this existing SparkSession will be failed.
> We need to detect such case in SparkSession and renew the class variable _instantiatedContext
if needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message