Rstudio服务器:无法在Centos上启动H2O.init

时间:2017-05-12 11:20:40

标签: rstudio h2o

H2o无法成功启动,但我仍然可以访问链接 本地主机:12345 /流/ index.html中

登录R Studio

h2o.init出错(nthreads = -1,max_mem_size =" 4g",ip =" localhost",:   H2O无法启动,停止执行。

登录操作系统

[root@xxxx]# tail -200f /tmp/RtmpYou3gq/h2o_tuongnv4_started_from_r.out


: ----- H2O started  -----
: Build git branch: rel-ueno
: Build git hash: f521cfeb6cf6c41ca6a728cdbaafe96509170907
: Build git describe: jenkins-3.10.4.5-4-gf521cfe
: Build project version: 3.10.4.6 (latest version: unknown)
: Build age: 15 days
: Built by: 'jenkins'
: Built on: '2017-04-26 22:11:30'
: Watchdog Build git branch: (unknown)
: Watchdog Build git hash: (unknown)
: Watchdog Build git describe: (unknown)
: Watchdog Build project version: (unknown)
: Watchdog Built by: (unknown)
: Watchdog Built on: (unknown)
: Processed H2O arguments: [-name, H2O_started_from_R_tuongnv4_tju329, -ip, localhost, -port, 12345, -ice_root, /tmp/RtmpYou3gq]
: Java availableProcessors: 8
: Java heap totalMemory: 238.0 MB
: Java heap maxMemory: 3.56 GB
: Java version: Java 1.8.0_131 (from Oracle Corporation)
: JVM launch parameters: [-Xmx4g, -ea]
: OS version: Linux 3.10.0-514.el7.x86_64 (amd64)
: Machine physical memory: 15.44 GB
: X-h2o-cluster-id: 1494587541855
: User name: 'tuongnv4'
: Opted out of sending usage metrics.
: IPv6 stack selected: false
: Possible IP Address: enp0s31f6 (enp0s31f6), 192.168.170.166
: Possible IP Address: lo (lo), 127.0.0.1
: Selected H2O.CLOUD_MULTICAST_IF: name:lo (lo) doesn't support multicast
: H2O node running in unencrypted mode.
: Internal communication uses port: 12346
: Listening for HTTP and REST traffic on http://127.0.0.1:12345/
: H2O cloud name: 'H2O_started_from_R_tuongnv4_tju329' on localhost/127.0.0.1:12345, discovery address /228.246.241.107:58614
: If you have trouble connecting, try SSH tunneling from your local machine (e.g., via port 55555):
:   1. Open a terminal and run 'ssh -L 55555:localhost:12345 tuongnv4@127.0.0.1'
:   2. Point your browser to http://localhost:55555
: Log dir: '/tmp/RtmpYou3gq/h2ologs'
: Cur dir: '/home/tuongnv4'
: HDFS subsystem successfully initialized
: S3 subsystem successfully initialized
: Flow dir: '/home/tuongnv4/h2oflows'
: Cloud of size 1 formed [localhost/127.0.0.1:12345]
: Registered parsers: [GUESS, ARFF, XLS, SVMLight, AVRO, PARQUET, CSV]
: Watchdog extension initialized
: Registered 1 extensions in: 2mS
: Registered: 148 REST APIs in: 283mS
: Registered: 209 schemas in 333ms
: H2O started in 2128ms
: 
: Open H2O Flow in your web browser: http://127.0.0.1:12345
: 
: GET /flow/index.html, parms: {}
: GET /flow/index.html, parms: {}
: GET /3/Metadata/endpoints, parms: {}
: Locking cloud to new members, because hex.schemas.DeepLearningV3
: GET /flow/help/catalog.json, parms: {}
: GET /3/ModelBuilders, parms: {}
: GET /3/NodePersistentStorage/categories/environment/names/clips/exists, parms: {}
: GET /3/About, parms: {}
: GET /3/NodePersistentStorage/notebook, parms: {}

3 个答案:

答案 0 :(得分:0)

几乎可以肯定,这里发生的是服务器配置问题。

对于初学者,我建议:

  • 禁用任何linux防火墙(iptables / iptables6)
  • 禁用SElinux

再试一次。

答案 1 :(得分:0)

您正在使用非标准端口(12345而非默认54321)。

尝试将port参数移除到h2o.init(),它可能会正常工作。

(或者曾经是,或者曾经是一个处理端口参数的错误,这可能是你正在打的。我相信解决方法是从命令行手动启动h2o.jar(即在R之外) ,然后h2o.init(port=12345)应该能够连接到它。)

答案 2 :(得分:0)

我可以想到可能发生的另一件事......

如果您能够使用Web浏览器连接到H2O,但不能从R中连接到H2O,那么您可能需要从R中取消设置代理环境变量。

确保在R会话中取消设置环境变量http_proxy和https_proxy。