title: JVM is not ready after 10 seconds
body: <p>I configured <code>sparkr</code> normally from the tutorials, and everything was working. I was able to read the database with <code>read.df</code>, but suddenly nothing else works, and the following error appears: </p>
  
  <blockquote>
    <p>Error in sparkR.init(master = "local") : JVM is not ready after 10 seconds</p>
  </blockquote>
  
  <p>Why does it appear now suddenly? I've read other users with the same problem, but the solutions given did not work. Below is my code:</p>
  
  <pre><code>Sys.setenv(SPARK_HOME= "C:/Spark")
  Sys.setenv(HADOOP_HOME = "C:/Hadoop")
  .libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
  library(SparkR)
  
  #initialeze SparkR environment
  Sys.setenv('SPARKR_SUBMIT_ARGS'='"--packages" "com.databricks:spark-csv_2.11:1.2.0" "sparkr-shell"')
  Sys.setenv(SPARK_MEM="4g")
  
  #Create a spark context and a SQL context
  sc &lt;- sparkR.init(master = "local")
  sqlContext &lt;- sparkRSQL.init(sc)
  </code></pre>