我正在尝试按照sparklyr
RStudio 的教程将 R 连接到 Spark:http: //spark.rstudio.com/
但是有些方法,我收到一条奇怪的错误消息,如下所示。有谁知道如何解决这个问题?我试图将C:\Windows\system32
路径添加到系统变量路径但没有成功。谢谢你的帮助。
> library(sparklyr)
> sc <- spark_connect(master = "local")
Error in sparkapi::start_shell(master = master, spark_home = spark_home, :
Failed to launch Spark shell. Ports file does not exist.
Path: C:\Users\Gaud\AppData\Local\rstudio\spark\Cache\spark-1.6.1-bin-hadoop2.6\bin\spark-submit.cmd
Parameters: --jars, "C:\Users\Gaud\Documents\R\win-library\3.3\sparklyr\java\sparklyr.jar", --packages, "com.databricks:spark-csv_2.11:1.3.0","com.amazonaws:aws-java-sdk-pom:1.10.34", sparkr-shell, C:\Users\Gaud\AppData\Local\Temp\RtmpC8MAa8\file322c47ee2a28.out