“无法连接到本地主机端口54321:连接被拒绝”

时间:2018-07-31 04:21:58

标签: machine-learning rstudio h2o h2o4gpu

我无法在我的R中运行h2o。它显示以下错误。不知道这意味着什么。以前它给我一个错误,因为我没有Java 64位版本。我下载了64位-重新启动了我的PC-再次开始了该过程,现在它给了我这个错误。

有什么建议吗?

> library(h2o) 
>h2o.init()



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

        Note:  In case of errors look at the following log files:
            C:\Users\E0475878\AppData\Local\Temp\RtmpieqnRc/h2o_E0475878_started_from_r.out


C:\Users\E0475878\AppData\Local\Temp\RtmpieqnRc/h2o_E0475878_started_from_r.err

    java version "1.6.0_26"
    Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, 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(ip = "localhost", port = 54321) : 
      H2O failed to start, stopping execution.
    In addition: Warning message:
    running command 'curl 'http://localhost:54321'' had status 127

** 

请咨询

1 个答案:

答案 0 :(得分:1)

  

java版本“ 1.6.0_26”

     

Java(TM)SE运行时环境(内部版本1.6.0_26-b03)

H2O需要Java 7或更高版本(标记为here)。您正在使用Java6。您将需要升级Java。如果可以,请卸载Java 6并安装Java 7或8。