[
https://issues.apache.org/jira/browse/LIVY-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16772741#comment-16772741
]
Thijs commented on LIVY-558:
----------------------------
Hi [~Jassy]
After some investigation in the SparkR scripts, I found out that this error is
given when the object .sparkRjsc is not defined.
So I made a local modification in the SparkRInterpreter.scala that this field
is assigned to the SparkContext as follows:
!image-2019-02-20-09-04-48-193.png!
After this change..the spark.lapply function works correctly.
Maybe it has todo with the Spark version I am using?
> Unable to use spark.lapply function it gives the error: "SparkR has not been
> initialized. "
> -------------------------------------------------------------------------------------------
>
> Key: LIVY-558
> URL: https://issues.apache.org/jira/browse/LIVY-558
> Project: Livy
> Issue Type: Bug
> Affects Versions: 0.5.0
> Environment: spark 2.2.1
> Reporter: Thijs
> Priority: Major
> Attachments: 2019-02-15 17.31.10.png,
> image-2019-02-14-14-32-01-792.png, image-2019-02-14-14-32-47-042.png,
> image-2019-02-20-09-04-48-193.png
>
>
> Hi,
> I want to use the spark.lapply function with R, so I tried to use the example
> which is supplied by spark.
> However when I run this example it gives me the following error:
> SparkR has not been initialized.
>
> See screenshot:
> !image-2019-02-14-14-32-01-792.png!
>
> I also tried todo what is stated, call the sparkR.session() function, but
> then it prints the error:
> !image-2019-02-14-14-32-47-042.png!
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)