R で sparklyr パッケージを使用して spark に接続しようとしていますが、次のエラーが発生します。
library(sparklyr)
> library(dplyr)
> config <- spark_config()
> config[["sparklyr.shell.conf"]] <- "spark.driver.extraJavaOptions=-XX:MaxHeapSize=4g"
> sc <- spark_connect(master = "local",version = "1.6.2")
Error in force(code) :
Failed while connecting to sparklyr to port (8880) for sessionid (344): Gateway in port (8880) did not respond.
Path: C:\Users\krispra\AppData\Local\rstudio\spark\Cache\spark-1.6.2-bin-hadoop2.6\bin\spark-submit2.cmd
Parameters: --class, sparklyr.Backend, --jars, "C:/Users/krispra/Documents/R/R-3.3.2/library/sparklyr/java/spark-csv_2.11-1.3.0.jar","C:/Users/krispra/Documents/R/R-3.3.2/library/sparklyr/java/commons-csv-1.1.jar","C:/Users/krispra/Documents/R/R-3.3.2/library/sparklyr/java/univocity-parsers-1.5.1.jar", "C:\Users\krispra\Documents\R\R-3.3.2\library\sparklyr\java\sparklyr-1.6-2.10.jar", 8880, 344
---- Output Log ----
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
---- Error Log ----
それを解決する方法はありますか?
ありがとう!ラミ