Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sparkr databricks error: too many open devices

I was using simple data manipulation using sparkr on Databricks. The code was working just fine a minute ago and suddenly I started getting the following error:

Error in png(fileName, width = plotWidth, height = plotHeight, pointsize = plotPointSize, : too many open devices

This happens even if I use, for example:

mtcars %>% select(mpg)

I was not making any plots. What could the solution be?

like image 609
Geet Avatar asked Jan 02 '23 02:01

Geet


2 Answers

I believe this can be done without restarting the cluster. Just Clear State and Results and Run them all again and you will be good to go.

like image 166
PranavMurali Avatar answered Jan 11 '23 16:01

PranavMurali


I am experiencing the same problem. The only solution seems to be to restart the cluster you're working on.

like image 45
A. Stam Avatar answered Jan 11 '23 16:01

A. Stam