[
https://issues.apache.org/jira/browse/SPARK-11199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yin Huai resolved SPARK-11199.
------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request 9185
[https://github.com/apache/spark/pull/9185]
> Improve R context management story and add getOrCreate
> ------------------------------------------------------
>
> Key: SPARK-11199
> URL: https://issues.apache.org/jira/browse/SPARK-11199
> Project: Spark
> Issue Type: Sub-task
> Components: SparkR
> Affects Versions: 1.5.1
> Reporter: Felix Cheung
> Assignee: Felix Cheung
> Priority: Minor
> Fix For: 2.0.0
>
>
> Similar to SPARK-11114
> Also from discussion in SPARK-10903:
> "
> Hossein Falaki added a comment - 08/Oct/15 13:06
> +1 We have seen a lot of questions from new SparkR users about the life cycle
> of the context.
> My question is: are we going to remove or deprecate sparkRSQL.init()? I
> suggest we should, because right now calling that method creates a new Java
> SQLContext object, and having two of them prevents users form viewing temp
> tables.
> Felix Cheung added a comment - 08/Oct/15 17:13
> +1 perhaps sparkR.init() should create sqlContext and/or hiveCtx together.
> But Hossein Falaki, as of now calling sparkRSQL.init() should return the same
> one as you can see
> https://github.com/apache/spark/blob/master/R/pkg/R/sparkR.R#L224
> Hossein Falaki added a comment - 08/Oct/15 17:16
> I meant the SQL Context:
> https://github.com/apache/spark/blob/master/R/pkg/R/sparkR.R#L236
> This call should have been "getOrCreate."
> "
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]