【发布时间】:2018-03-07 03:34:59
【问题描述】:
我正在运行以下代码以连接到 R 中的 H2O 并获得以下输出: h2o.init(nthreads=-1, max_mem_size = paste(x,"g", sep = ""))
R is connected to the H2O cluster:
H2O cluster uptime: 3 minutes 57 seconds
H2O cluster version: 3.14.0.3
H2O cluster version age: 3 days
H2O cluster name: H2O_started_from_R_rami_krispin
H2O cluster total nodes: 1
H2O cluster total memory: 0.88 GB
H2O cluster total cores: 4
H2O cluster allowed cores: 4
H2O cluster healthy: TRUE
H2O Connection ip: localhost
H2O Connection port: 54321
H2O Connection proxy: NA
H2O Internal Security: FALSE
H2O API Extensions: Algos, AutoML, Core V3, Core V4
R Version: R version 3.4.1 (2017-06-30)
有没有办法将无论连接成功(例如is.h2o.connect(),响应为 True/False)捕获到布尔变量中,并将连接的属性捕获到变量中?例如:
x$port
>54321
或
x$memory
>0.88 GB
提前感谢您! 拉米
【问题讨论】:
-
是
h2o.clusterIsUp()第一个问题你想要什么? -
太快了!任何是的!谢谢!
-
然后
h2o.clusterInfo()为您提供打印到控制台的信息。我认为要将其放入 R 对象中,您需要一种捕获和解析它的方法