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

Sean R. Owen commented on SPARK-29972:
--------------------------------------

I am not sure we want to do this. What if I want to restart a session after the 
last one is closed?

> Manage/trace all spark sessions
> -------------------------------
>
>                 Key: SPARK-29972
>                 URL: https://issues.apache.org/jira/browse/SPARK-29972
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Lantao Jin
>            Priority: Major
>
> Current there is no place to trace all live spark sessions in a 
> non-thrift-server application. For example spark session can be stored in 
> thread local variable and be garbage collection when user's thread exit. So 
> it may has some problems like memory leak in an application. Also, seems we 
> don't have such an action called "close session" in Spark SQL. 
> SparkSession.close closes the SparkContext and thus closes all sessions.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to