Issue starting h2o from RStudio, running command 'curl 'http://localhost:54321'' had status 127 [duplicate]

泄露秘密 提交于 2019-12-24 02:21:05

问题


I'm trying to start H2O from within RStudio. I've got the latest versions of R, RStudio, the R H2O package, Java SE SDK and the RCurl package. But when trying to initialize H2O, I get the following output:

H2O is not running yet, starting it now...

Note:  In case of errors look at the following log files:

 C:\Users\fel069\AppData\Local\Temp\RtmpQZJyS1/h2o_fel069_started_from_r.out
 C:\Users\fel069\AppData\Local\Temp\RtmpQZJyS1/h2o_fel069_started_from_r.err

java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

    Starting H2O JVM and connecting:     ............................................................ 
[1] "localhost"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to localhost port 54321: Connection refused"
[1] 127
Error in h2o.init(nthreads = -1, max_mem_size = "8g") : 
  H2O failed to start, stopping execution.
In addition: Warning message:
running command 'curl 'http://localhost:54321'' had status 127

Any help appreciated. Thanks!


回答1:


Turns out I overlooked the requirements of H2O. Java 9 SDK is not supported. Downgrading to version 8 fixed my problem.



来源:https://stackoverflow.com/questions/46535110/issue-starting-h2o-from-rstudio-running-command-curl-http-localhost54321

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!