I installed the SparkR package from the Spark distribution into the R library. I can call the following command and it seems to work correctly: library(SparkR)
However, when I try to get the Spark context using the following code,
sc <- sparkR.init(master="local")
After some time, it does not work with the following message:
Error in sparkR.init(master = "local") : JVM is not ready after 10 seconds
I installed JAVA_HOME and I have a working RStudio where I can access other packages like ggplot2. I do not know why it does not work, and I do not even know where to investigate it.
rstudio apache-spark sparkr
u449355
source share