在R中启动h2o.init()时出错 [英] Error when starting h2o.init() in R
本文介绍了在R中启动h2o.init()时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试启动h2o时出现错误.运行以下启动命令:
library(h2o)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
给出以下错误:
Error in system2(command, "-version", stdout = TRUE, stderr = TRUE) : '""' not found
这不是特别有启发性.有没有人暗示这是什么问题? Java已安装在系统上,但与问题在此不同没有收到任何Java警告.
正在运行的系统("java -version")给出:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
这是sessionInfo()的输出:
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2008 R2 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Danish_Denmark.1252 LC_CTYPE=Danish_Denmark.1252 LC_MONETARY=Danish_Denmark.1252
[4] LC_NUMERIC=C LC_TIME=Danish_Denmark.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] h2o_3.6.0.8 statmod_1.4.22 deepnet_0.2
[4] TTR_0.23-0 selectiveInference_1.1.1 intervals_0.15.1
[7] lars_1.2 glmnet_2.0-2 foreach_1.4.3
[10] Matrix_1.2-2 wq_0.4.4 zoo_1.7-12
[13] skm_1.0.2 stringi_1.0-1 devtools_1.9.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.2 rstudioapi_0.3.1 magrittr_1.5 MASS_7.3-43 munsell_0.4.2
[6] colorspace_1.2-6 lattice_0.20-33 stringr_1.0.0 plyr_1.8.3 xts_0.9-7
[11] tools_3.2.2 grid_3.2.2 gtable_0.1.2 iterators_1.0.8 digest_0.6.8
[16] reshape2_1.4.1 ggplot2_1.0.1 bitops_1.0-6 codetools_0.2-14 RCurl_1.95-4.7
[21] memoise_0.2.1 scales_0.3.0 jsonlite_0.9.17 proto_0.3-10
解决方案
我遇到了同样的问题.您不仅需要安装Java客户端,还需要安装Java SDK软件.
另请参阅记录的问题与水有关
I am getting an error when trying to start h2o. Running the following start-up commands:
library(h2o)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = TRUE)
Gives the following error:
Error in system2(command, "-version", stdout = TRUE, stderr = TRUE) : '""' not found
It's not particularly enlightning. Does anyone have a hint as to what is the problem? Java is installed on the system, but unlike the question here I do not get any Java warnings.
Running system("java -version") gives:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Here is the output of sessionInfo():
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2008 R2 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Danish_Denmark.1252 LC_CTYPE=Danish_Denmark.1252 LC_MONETARY=Danish_Denmark.1252
[4] LC_NUMERIC=C LC_TIME=Danish_Denmark.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] h2o_3.6.0.8 statmod_1.4.22 deepnet_0.2
[4] TTR_0.23-0 selectiveInference_1.1.1 intervals_0.15.1
[7] lars_1.2 glmnet_2.0-2 foreach_1.4.3
[10] Matrix_1.2-2 wq_0.4.4 zoo_1.7-12
[13] skm_1.0.2 stringi_1.0-1 devtools_1.9.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.2 rstudioapi_0.3.1 magrittr_1.5 MASS_7.3-43 munsell_0.4.2
[6] colorspace_1.2-6 lattice_0.20-33 stringr_1.0.0 plyr_1.8.3 xts_0.9-7
[11] tools_3.2.2 grid_3.2.2 gtable_0.1.2 iterators_1.0.8 digest_0.6.8
[16] reshape2_1.4.1 ggplot2_1.0.1 bitops_1.0-6 codetools_0.2-14 RCurl_1.95-4.7
[21] memoise_0.2.1 scales_0.3.0 jsonlite_0.9.17 proto_0.3-10
解决方案
I had the same problem. You not only need to install the java client but also the java SDK software.
See also logged issue with H2O
这篇关于在R中启动h2o.init()时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文