[ https://issues.apache.org/jira/browse/TOREE-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937724#comment-15937724 ]
Mario Briggs commented on TOREE-398: ------------------------------------ [~mariusvniekerk] any thoughts on above, since i see your PR handled 2.0 support in R Interpreter > Toree - R : Error in getSparkSession(): SparkSession not initialized when > using 'spark' > --------------------------------------------------------------------------------------- > > Key: TOREE-398 > URL: https://issues.apache.org/jira/browse/TOREE-398 > Project: TOREE > Issue Type: Bug > Affects Versions: 0.2.0 > Reporter: Mario Briggs > > Using Toree R interpreter with Spark 2.0. > After kernel is initialized, 'spark' var is available > >> > spark > Out[19]: > Java ref type org.apache.spark.sql.SparkSession id 33 > << > However trying to use it , ends up with this > >> > localDF <- data.frame(name=c("a", "b", "c"), age=c(19, 23, 18)) > df <- createDataFrame(spark, localDF) > Out[20]: > Message: Error in getSparkSession(): SparkSession not initialized > << > Trying to do sparkR.session(), leads to eror that only one SparkContext can > be created > Seem zepellin hit same issue and fixed - > https://issues.apache.org/jira/browse/ZEPPELIN-1260 > I see 2.0 fixes are around this line - > https://github.com/apache/incubator-toree/blob/master/sparkr-interpreter/src/main/resources/kernelR/sparkr_runner.R#L122 -- This message was sent by Atlassian JIRA (v6.3.15#6346)