我正在尝试使用以下命令在R Studio中第一次连接到h20:
library(h2o)
h2o.init()R版本2.3.2和h20版本3.10.2.2。有没有办法解决这个问题,这样我就能连接上了?
H2O is not running yet, starting it now...
running command ''/usr/bin/java' -version 2>&1' had status 1
Note: In case of errors look at the following log files:
/var/folders/w7/vpssy9010lg4xxlwkg5f2zwm0000gn/T//RtmpZhyGXB/h2o_chrisstroud_started_from_r.out
/var/folders/w7/vpssy9010lg4xxlwkg5f2zwm0000gn/T//RtmpZhyGXB/h2o_chrisstroud_started_from_r.err
No Java runtime present, requesting install.
Starting H2O JVM and connecting: ............................................................
[1] "localhost"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to localhost port 54321: Connection refused"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 54321: Connection refused
[1] 7
Show Traceback
Error in h2o.init() : H2O failed to start, stopping execution.发布于 2018-11-03 02:15:15
如果您启用了代理,它将无法工作。
Sys.setenv(https_proxy="")
Sys.setenv(http_proxy="")
Sys.setenv(http_proxy_user="")
Sys.setenv(https_proxy_user="")帮我修好了。
https://stackoverflow.com/questions/42018170
复制相似问题