我正在尝试在localhost上启动H2O集群,但是启动连接花费的时间太长。这是我正在使用的代码:
pkgs <- c("methods","statmod","stats","graphics","RCurl","jsonlite","tools","utils")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
}
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/8/R")))
library(h2o)
h2o.init(nthreads = -1)
控制台中的内容是:
H2O is not running yet, starting it now...
Note: In case of errors look at the following log files:
/var/folders/0c/2vddb1fs58q9tms_p7qzp2v00000gn/T//RtmpqOJp73/h2o_name_started_from_r.out
/var/folders/0c/2vddb1fs58q9tms_p7qzp2v00000gn/T//RtmpqOJp73/h2o_name_started_from_r.err
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
Starting H2O JVM and connecting: ...
我更新此问题,因为现在已显示错误:
Error: Unable to establish connection with R session
答案 0 :(得分:0)
Java 9是Java的较差版本,无法使用(实际上几乎所有功能)。
我建议使用很多人都使用过的Java 8。