cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

RserveException: eval failed

GC-James
Contributor II

Sometimes when I am running R code in a Databricks notebook I am given this error. The cell I am running fails, and my whole R 'session' seems to get screwed up. For example my stored variables disappear, and I have to re-load my packages etc. It is difficult to give a reproducible example because the behaviour is inconsistent. I can run the same code twice, one time it is fine, the next it is not. Below I give a picture of it happening in my notebook, and also the driver logs for the time it occurred. Grateful if someone has an idea as to what is causing this? Thanks.

rserve_error 

8 REPLIES 8

Atiq
New Contributor II

Hey @Kaniz Fatmaโ€‹ 

We are also experiencing the same problem, and could not find a solution online. Could you kindly help us in this matter?

GC-James
Contributor II

@Atiquzzaman Ankurโ€‹  -- I think that this issue might be memory related. I think perhaps it happens when R tries to use more memory than is available to the Databricks cluster. Suggest monitoring the Ganglia UI just before you run a process that causes the crash. See if it 'tops out' the memory.

@Kaniz Fatmaโ€‹  -- I'm not sure if the issue persists in RStudio or not. It would take quite some effort to port my code out of databricks and test.

Atiq
New Contributor II

@James Smithโ€‹ Thank you for the suggestion :). I will try that out.

@Kaniz Fatmaโ€‹  And from our end, the script works perfectly fine on RStudio. Only getting the issue in Databricks.

Well I have been limiting the memory usage of my code to 'solve' the problem so far. If it was the problem at all. I'm not sure.

Hello @Kaniz Fatmaโ€‹  . None of the above replies have given a solution.

data_warrior
New Contributor III

Hello all @James Smithโ€‹ @Atiquzzaman Ankurโ€‹  @Kaniz Fatmaโ€‹ ,

I am facing the exact same issue and do not know how to solve it. I tried freeing up some memory, But the problem persists. Please look at some of my screenshots.

It would be great if one of you could point me in the correct direction. I checked my memory consumption on driver node and I observed that it is maxing out for a short while. But I don't think this is the cause for failure as I have observed this multiple times before and the code still ran successfully without any error.

Best regards,

Akshay

data_warrior
New Contributor III

The error file is attached here.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group