所需端口 54321、54322 在 h2o 中的 R 上不可用错误

Required ports 54321, 54322 are not available error on R in h2o

我无法在 MRO3.3 中启动 H2o h2o.init() 给出了以下输出

08-02 00:40:36.543 127.0.0.1:54321       19672  main      INFO: ----- H2O started  -----
08-02 00:40:36.610 127.0.0.1:54321       19672  main      INFO: Build git branch: rel-turan
08-02 00:40:36.610 127.0.0.1:54321       19672  main      INFO: Build git hash: e2959c131831f8d5dad8c92eebdf0ad4a4e78d09
08-02 00:40:36.610 127.0.0.1:54321       19672  main      INFO: Build git describe: jenkins-rel-turan-3
08-02 00:40:36.610 127.0.0.1:54321       19672  main      INFO: Build project version: 3.8.1.3
08-02 00:40:36.610 127.0.0.1:54321       19672  main      INFO: Built by: 'jenkins'
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Built on: '2016-03-06 14:54:19'
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Java availableProcessors: 4
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Java heap totalMemory: 150.0 MB
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Java heap maxMemory: 1.72 GB
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Java version: Java 1.8.0_91 (from Oracle Corporation)
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: JVM launch parameters: [-ea]
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: OS version: Linux 4.4.0-31-generic (amd64)
08-02 00:40:36.611 127.0.0.1:54321       19672  main      INFO: Machine physical memory: 7.73 GB
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: X-h2o-cluster-id: 1470078635582
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: User name: 'chaithanya'
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Opted out of sending usage metrics.
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Possible IP Address: wlo1 (wlo1), fe80:0:0:0:d5a6:487d:f375:a2e%wlo1
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Possible IP Address: wlo1 (wlo1), 10.42.0.1
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Possible IP Address: enp8s0 (enp8s0), fe80:0:0:0:1c9a:f547:b84:a5da%enp8s0
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Possible IP Address: enp8s0 (enp8s0), 10.105.34.74
08-02 00:40:36.612 127.0.0.1:54321       19672  main      INFO: Possible IP Address: lo (lo), 0:0:0:0:0:0:0:1%lo
08-02 00:40:36.613 127.0.0.1:54321       19672  main      INFO: Possible IP Address: lo (lo), 127.0.0.1
08-02 00:40:36.613 127.0.0.1:54321       19672  main      FATAL: On /127.0.0.1 some of the required ports 54321, 54322 are not available, change -port PORT and try again.

输出:

Exception in thread "main" java.lang.AssertionError
        at water.AutoBuffer.<init>(AutoBuffer.java:165)
        at water.UDPRebooted$T.send(UDPRebooted.java:25)
        at water.H2O.shutdown(H2O.java:519)
        at water.H2O.die(H2O.java:1770)
        at water.init.NetworkInit.initializeNetworkSockets(NetworkInit.java:410)
        at water.H2O.startLocalNode(H2O.java:1294)
        at water.H2O.main(H2O.java:1705)
        at water.H2OStarter.start(H2OStarter.java:21)
        at water.H2OStarter.start(H2OStarter.java:36)
        at water.H2OApp.main(H2OApp.java:5)

即使我更改了端口,我也无法访问 h2o 我尝试重新安装 java 和 h2o,但到目前为止运气不佳

日志的最后一行解释了这个问题:

08-02 00:40:36.613 127.0.0.1:54321       19672  main      FATAL: On /127.0.0.1 some of the required ports 54321, 54322 are not available, change -port PORT and try again.

它说,"some of the required ports 54321, 54322 are not available"。确保这些端口可用,或者如果它们不可用,则只需使用 h2o.init().

中的 port 参数在不同的端口上启动 H2O