我最近在R中遇到了H2o包的问题。最初作为更新开始的事情变得一团糟。
如上所述,我不得不将H2o版本从H2o版本3.16更新到最新版本(3.19)。第一个问题是让H2o与java版本1.8连接。使用来自有类似问题的用户的post,我设法修复了/~.Renviron
并成功实现了Sys.getenv("JAVA_HOME")
,这样就可以创建一个链接来查找java 1.8库。
现在我仍然遇到这个错误,我不知道为什么。由于某种原因,错误Network address/interface is not reachable in 150m
是最重要的错误,不断重复。我不知道这是否与我在JAVA_HOME
中设置/~.Renviron
的方式类似。包版本也明确更新。
以下是错误的全部内容:
=============================================== =======================
> 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/j5/77z5k0l92kg18q8svpxl_n640000gn/T//RtmpS0HsXx/h2o_andrewlewis_started_from_r.out
/var/folders/j5/77z5k0l92kg18q8svpxl_n640000gn/T//RtmpS0HsXx/h2o_andrewlewis_started_from_r.err
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Starting H2O JVM and connecting:
............................................................Cannot load
library from path lib/osx_64/libxgboost4j_gpu.dylib
Cannot load library from path lib/libxgboost4j_gpu.dylib
Failed to load library from both native path and jar!
Cannot load library from path lib/osx_64/libxgboost4j_omp.dylib
Cannot load library from path lib/libxgboost4j_omp.dylib
Failed to load library from both native path and jar!
Found XGBoost backend with library: xgboost4j_minimal
Your system supports only minimal version of XGBoost (no GPUs, no
multithreading)!
----- H2O started -----
Build git branch: master
Build git hash: d0520285e973c062e57c88c1c865164006358fda
Build git describe: jenkins-master-4230-2-gd052028
Build project version: 3.19.0.4231 (latest version: 3.18.0.4)
Build age: 13 hours and 11 minutes
Built by: 'jenkins'
Built on: '2018-03-13 06:31:09'
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)
XGBoost Build git branch: (unknown)
XGBoost Build git hash: (unknown)
XGBoost Build git describe: (unknown)
XGBoost Build project version: (unknown)
XGBoost Built by: (unknown)
XGBoost Built on: (unknown)
KrbStandalone Build git branch: (unknown)
KrbStandalone Build git hash: (unknown)
KrbStandalone Build git describe: (unknown)
KrbStandalone Build project version: (unknown)
KrbStandalone Built by: (unknown)
KrbStandalone Built on: (unknown)
Processed H2O arguments: [-name, H2O_started_from_R_andrewlewis_zkx063, -ip,
localhost, -port, 54321, -ice_root,
/var/folders/j5/77z5k0l92kg18q8svpxl_n640000gn/T//RtmpS0HsXx]
Java availableProcessors: 4
Java heap totalMemory: 61.5 MB
Java heap maxMemory: 910.5 MB
Java version: Java 1.8.0_45 (from Oracle Corporation)
JVM launch parameters: [-ea]
OS version: Mac OS X 10.13.1 (x86_64)
Machine physical memory: 4.00 GB
X-h2o-cluster-id: 1520984534744
User name: 'andrewlewis'
IPv6 stack selected: false
Network address/interface is not reachable in 150ms:
/fe80:0:0:0:a86b:c976:882a:7803%utun1/name:utun1 (utun1)
Network address/interface is not reachable in 150ms:
/fe80:0:0:0:89dc:1b0f:6ed4:90f9%utun0/name:utun0 (utun0)
Network address/interface is not reachable in 150ms:
/fe80:0:0:0:d093:b2ff:fe8c:74be%awdl0/name:awdl0 (awdl0)
Network address/interface is not reachable in 150ms:
/fe80:0:0:0:10c0:35b:627d:a197%en1/name:en1 (en1)
Network address/interface is not reachable in 150ms: /192.168.0.9/name:en1 (en1)
Network address/interface is not reachable in 150ms:
/fe80:0:0:0:0:0:0:1%lo0/name:lo0 (lo0)
Possible IP Address: lo0 (lo0), 0:0:0:0:0:0:0:1
Network address/interface is not reachable in 150ms: /127.0.0.1/name:lo0 (lo0)
IP address not found on this machine
[1] "localhost"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to localhost port 54321: Connection refused"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
0curl: (7) Failed to connect to localhost port 54321: Connection refused
[1] 7
Error in h2o.init(nthreads = -1) :
H2O failed to start, stopping execution.`
我不知道该怎么做,我不确定是否需要更新其他软件包,或者是否需要实施一些细微的更改才能实现。我只是想让H2o工作。