微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Sparklyr-无法连接到“本地”

如何解决Sparklyr-无法连接到“本地”

当尝试使用sparklyr连接到spark时,出现以下错误消息:

'Error in spark_connect_gateway(gatewayAddress,gatewayPort,sessionId,: 
  Gateway in localhost:8880 did not respond.'

控制台中没有显示其他信息。我正在运行Spark 3.0.0和Java 8 RE。

我去寻找.log文件并找到了。这就是它包含的内容

'Cool' is not recognized as an internal or external command,operable program or batch file.
Failed to find Spark jars directory.
You need to build Spark before running this program.

我的本​​地帐户名称包含“ Cool”,名称中带有空格,因此它可能与我在PATH中为spark_home设置的文件路径有关。如何在文件路径中包含空格?我尝试使用不同的引号组合,但仍然收到相同的错误消息。

R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  Grdevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_1.0.2    sparklyr_1.4.0 shiny_1.5.0   

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.5        later_1.1.0.1     compiler_4.0.2    pillar_1.4.6      dbplyr_1.4.4      r2d3_0.2.3       
 [7] base64enc_0.1-3   tools_4.0.2       odbc_1.2.3        digest_0.6.25     bit_4.0.4         jsonlite_1.7.1   
[13] evaluate_0.14     tibble_3.0.3      lifecycle_0.2.0   pkgconfig_2.0.3   rlang_0.4.7       DBI_1.1.0        
[19] rstudioapi_0.11   parallel_4.0.2    yaml_2.2.1        xfun_0.17         fastmap_1.0.1     withr_2.3.0      
[25] httr_1.4.2        knitr_1.30        askpass_1.1       rappdirs_0.3.1    generics_0.0.2    vctrs_0.3.4      
[31] htmlwidgets_1.5.1 hms_0.5.3         bit64_4.0.5       rprojroot_1.3-2   tidyselect_1.1.0  glue_1.4.2       
[37] forge_0.2.0       R6_2.4.1          rmarkdown_2.3     tidyr_1.1.2       purrr_0.3.4       blob_1.2.1       
[43] magrittr_1.5      promises_1.1.1    backports_1.1.10  htmltools_0.5.0   ellipsis_0.3.1    assertthat_0.2.1 
[49] xtable_1.8-4      mime_0.9          httpuv_1.5.4      config_0.3        tinytex_0.26      openssl_1.4.3

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?