我一直试图从RStudio在Windows 10笔记本电脑上运行Spark的本地实例,但没有成功。我收到以下错误提示:
* Using Spark: 2.3.0
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:\Users\<UserName>\AppData\Local\Temp\*******\********_spark.log': Permission denied
我尝试了所有在网上找到的建议解决方案,包括从github安装sparklyr,以管理员身份运行R和RStudio,仅运行64位Java,以及检查所有.cmd文件是否具有正确的权限。仍然,连接失败。
我运行的用于启动Spark的命令非常简单:
library(sparklyr)
sc <- spark_connect(master = "local")
这是来自session.info的提示:
会话信息
setting value
version R version 3.5.2 (2018-12-20)
os Windows >= 8 x64
system x86_64, mingw32
ui RStudio
language EN
collate German_Austria.1252
ctype German_Austria.1252
tz Europe/Berlin
date 2019-02-12
sparklyr-0.9.9006 2019-02-12 [1] Github(rstudio / sparklyr @ 6b41c4a)
非常感谢您的帮助!