我正在尝试此R代码:
library(sparklyr)
sc <- spark_connect(spark_home = "C:/spark-2.4.2-bin-hadoop2.7",
master = "spark://VmName:7077")
并收到此错误:
Error in force(code) :
Failed while connecting to sparklyr to port (8880) for sessionid (22615): Gateway in localhost:8880 did not respond.
Path: C:\spark-2.4.2-bin-hadoop2.7\bin\spark-submit2.cmd
Parameters: --class, sparklyr.Shell, "C:\Users\U1234\Documents\R\win-library\3.5\sparklyr\java\sparklyr-2.3-2.11.jar", 8880, 22615
Log: C:\Users\U1234\AppData\Local\Temp\RtmpQFwPSV\file39c10f35789_spark.log
有点混乱。为什么代码尝试连接到本地Spark:localhost:8880
有人可以提供有关此无效代码的反馈吗?谢谢!