我无法让h2o在我的R中工作。它显示以下错误。不知道这意味着什么。以前它给了我一个错误,因为我没有Java 64位版本。我下载了64位 - 重新启动了我的电脑 - 并重新开始了这个过程,现在它给了我这个错误。R中出现H2O错误 - 无法连接到本地主机
有什么建议吗?
library(h2o)
----------------------------------------------------------------------
Your next step is to start H2O:
> h2o.init()
For H2O package documentation, ask for help:
> ??h2o
After starting H2O, you can use the Web UI at http://localhost:54321
For more information visit http://docs.h2o.ai
----------------------------------------------------------------------
Attaching package: ‘h2o’
The following objects are masked from ‘package:stats’:
cor, sd, var
The following objects are masked from ‘package:base’:
%*%, %in%, &&, ||, apply, as.factor, as.numeric, colnames, colnames<-, ifelse,
is.character, is.factor, is.numeric, log, log10, log1p, log2, round, signif, trunc
> h2o.init(nthreads = -1)
H2O is not running yet, starting it now...
Note: In case of errors look at the following log files:
C:\Users\ADM_MA~1\AppData\Local\Temp\RtmpygK1EJ/h2o_Adm_Mayur_started_from_r.out
C:\Users\ADM_MA~1\AppData\Local\Temp\RtmpygK1EJ/h2o_Adm_Mayur_started_from_r.err
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
Starting H2O JVM and connecting: ............................................................
[1] "localhost"
[1] 54321
[1] TRUE
[1] -1
[1] "Failed to connect to localhost port 54321: Connection refused"
[1] 127
Error in h2o.init(nthreads = -1) :
H2O failed to start, stopping execution.
In addition: Warning message:
running command 'curl 'http://localhost:54321'' had status 127
可能找不到Java。你可以尝试加载RJava吗?之后,如果您可以加载RJava但仍然存在问题,那么下一步就是尝试从Windows(或Linux等)命令行运行H2O .jar文件。你能做到吗? –
因此,当我尝试加载rJava时出现此错误 - 注意:我正在使用R版本3.4.1 另外,请注意:我正在寻找一些绳索,因为我不是普通程序员。所以请求你请你把我的答复贬低。我需要这个h2o软件包来进行Udemy的深入学习。但我不太了解这个话题。 > library(rJava) 错误:'rJava'的程序包或命名空间加载失败: 。onLoad在'rJava'的loadNamespace()中失败,详细信息: 调用:fun(libname,pkgname) 错误:无法从注册表中确定JAVA_HOME 有何建议? – Mayur
我也确保我使用R和Java的64位版本。所以这绝对不是错误。 – Mayur