I have installed the SparkR package from Spark distribution into the R library. I can call the following command and it seems to work properly: library(SparkR)
However, when I try to get the Spark context using the following code,
sc <- sparkR.init(master="local")
It fails after some time with the following message:
Error in sparkR.init(master = "local") :
JVM is not ready after 10 seconds
I have set JAVA_HOME, and I have a working RStudio where I can access other packages like ggplot2. I don't know why it is not working, and I don't even know where to investigate the issue.
.libPaths
? Does it work outside RStudio (sparkR shell, R shell)? – Recapitulate