我無法讓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