You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Roger Liu (JIRA)" <ji...@apache.org> on 2018/10/16 18:09:00 UTC

[jira] [Commented] (LIVY-505) sparkR.session failed with "invalid jobj 1" error in Spark 2.3

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

Roger Liu commented on LIVY-505:
--------------------------------

Any plans on addressing this? I've found that the changes made in this commit seem to be responsible for this issue

[https://github.com/apache/incubator-livy/commit/c1aafeb6cb87f2bd7f4cb7cf538822b59fb34a9c#diff-21554ea755ff53e004c873596a5c072aL155]

 

> sparkR.session failed with "invalid jobj 1" error in Spark 2.3
> --------------------------------------------------------------
>
>                 Key: LIVY-505
>                 URL: https://issues.apache.org/jira/browse/LIVY-505
>             Project: Livy
>          Issue Type: Bug
>          Components: Interpreter
>    Affects Versions: 0.5.0, 0.5.1
>            Reporter: shanyu zhao
>            Priority: Major
>
> In Spark 2.3 cluster, use Zeppelin with livy2 interpreter, and type:
> {code:java}
> %sparkr
> sparkR.session(){code}
> You will see error:
> [1] "Error in writeJobj(con, object): invalid jobj 1"
> In a successful case with older livy and spark versions, we see something like this:
> Java ref type org.apache.spark.sql.SparkSession id 1
> This indicates isValidJobj() function in Spark code returned false for SparkSession obj. This is isValidJobj() function in Spark 2.3 code FYI:
> {code:java}
> isValidJobj <- function(jobj) {
>   if (exists(".scStartTime", envir = .sparkREnv)) {
>     jobj$appId == get(".scStartTime", envir = .sparkREnv)
>   } else {
>     FALSE
>   }
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)