You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Jakob Odersky (JIRA)" <ji...@apache.org> on 2017/02/27 20:52:45 UTC

[jira] [Resolved] (TOREE-387) Kernel should not store SparkSession

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

Jakob Odersky resolved TOREE-387.
---------------------------------
    Resolution: Fixed

fixed in pr

> Kernel should not store SparkSession
> ------------------------------------
>
>                 Key: TOREE-387
>                 URL: https://issues.apache.org/jira/browse/TOREE-387
>             Project: TOREE
>          Issue Type: Improvement
>            Reporter: Ryan Blue
>
> Currently, the kernel creates and stores the SparkSession in a field to share between interpreters. If the user closes a SparkSession and creates a new one, then the Kernel still returns the original. Users may need to restart Spark sessions for long-running notebooks or to deal with Spark errors without losing datasets that have been pulled back to the notebook.
> I think that Toree should always return the current Spark session by calling {{SparkSession.builder.getOrCreate}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)