提问人:Rothschild 提问时间:9/27/2023 最后编辑:Rothschild 更新时间:9/28/2023 访问量:81
我无法在 R 中运行 h2o 集群
I can't run h2o cluster in R
问:
我似乎无法让 h2o 在 R 中运行。
我可以使用哪些显示器轻松导入 h2olibrary(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 https://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
Warning message:
package ‘h2o’ was built under R version 4.1.3
但问题是每当我运行启动 h2o 集群时,我都会收到以下错误消息h2o.init()
H2O is not running yet, starting it now...
<simpleError in system2(command, "-version", stdout = TRUE, stderr = TRUE): '"C:\Program Files\Java\jdk-20\bin\bin\java.exe"' not found>
Error in value[[3L]](cond) :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK from the following URL:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
In addition: Warning message:
In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\Program Files\Java\jdk-20\bin/bin/java.exe": The system cannot find the path specified
我的笔记本电脑是 HP 64 位,我下载和安装的 Java JDK 是 jdk-20_windows-x64_bin(64 位)。
我还在环境变量中设置了所需的 Java 路径。
以下是安装的 Java 版本
Microsoft Windows [Version 10.0.19044.1889]
(c) Microsoft Corporation. All rights reserved.
C:\Users\user>java -version
java version "20.0.2" 2023-07-18
Java(TM) SE Runtime Environment (build 20.0.2+9-78)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)
我不明白为什么 h2o 无法检测到我已经安装的 64 位 Java 并使用它。
我是否下载/安装了错误的 Java JDK 文件?
我的R版本是4.1.0
答: 暂无答案
评论