R语言 无法连接到http://localhost:54321

mm5n2pyu  于 2023-02-06  发布在  其他
关注(0)|答案(1)|浏览(281)

我喜欢使用lilikoi R包提供的模拟数据运行lilikoi示例代码,但是,由于与H2O的连接错误,我被lilikoi.machine_learning()命令卡住了。
我下载了H2O文件并在R终端中解压缩,但现在无法连接到您的网站(https://h2o-release.s3.amazonaws.com/h2o/rel-zygmund/4/index.html)所指示的http://localhost:54321。
下面是我收到的错误消息,从我的R控制台复制:

H2O is not running yet, starting it now...

Note:  In case of errors look at the following log files:
    C:\Users\LUISEB~1\AppData\Local\Temp\Rtmp6HnISl\file2abc38ab39e6/h2o_Luise_Bellach_started_from_r.out
    C:\Users\LUISEB~1\AppData\Local\Temp\Rtmp6HnISl\file2abc5e38704f/h2o_Luise_Bellach_started_from_r.err

java version "1.8.0_361"
Java(TM) SE Runtime Environment (build 1.8.0_361-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.361-b09, mixed mode)

Starting H2O JVM and connecting: . Connection successful!

R is connected to the H2O cluster: 
    H2O cluster uptime:         1 seconds 582 milliseconds 
    H2O cluster timezone:       Europe/Berlin 
    H2O data parsing timezone:  UTC 
    H2O cluster version:        3.38.0.1 
    H2O cluster version age:    4 months and 11 days !!! 
    H2O cluster name:           H2O_started_from_R_Luise_Bellach_gwz511 
    H2O cluster total nodes:    1 
    H2O cluster total memory:   3.51 GB 
    H2O cluster total cores:    16 
    H2O cluster allowed cores:  16 
    H2O cluster healthy:        TRUE 
    H2O Connection ip:          localhost 
    H2O Connection port:        54321 
    H2O Connection proxy:       NA 
    H2O Internal Security:      FALSE 
    R Version:                  R version 4.2.2 (2022-10-31 ucrt) 
Warnung: 
Your H2O cluster version is too old (4 months and 11 days)!
Please download and install the latest version from http://h2o.ai/download/
  |=========================================================================================================================| 100%
  |                                                                                                                         |   0%Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = urlSuffix,  : 
  Unexpected CURL error: Operation was aborted by an application callback
[1] "Job request failed Unexpected CURL error: Operation was aborted by an application callback, will retry after 3s."

这种情况持续多次,并且%条不移动。有人能帮我解决这个问题吗?
最佳
路易丝·贝拉赫博士
我下载了H2O文件并在R终端中解压缩,但现在无法连接到您的网站(https://h2o-release.s3.amazonaws.com/h2o/rel-zygmund/4/index.html)所指示的http://localhost:54321。

qvtsj1bj

qvtsj1bj1#

我找到了下载最新软件包的替代方法:
1.定义要将ZIP文件下载到的位置(我在工作目录中创建了Downloads文件夹),并从http://h2o-release.s3.amazonaws.com/h2o/latest_stable.html下载
1.在终端运行这个

cd ~/Downloads
unzip h2o-3.38.0.2.zip
cd h2o-3.38.0.2
java -jar h2o.jar

1.通过终端中的对话框安装r(不是python)
1.通过控制台安装

install.packages("~\Downloads\h2o-3.38.0.4\R\h2o_3.38.0.4.tar.gz", repos = NULL, type = "source")

1.装入库

library(h2o)

故障排除:确保安装了合适的Java版本(例如版本8)
或者:这也是一个由H2O发布的代码:www.example.comhttps://docs.h2o.ai/h2o/latest-stable/h2o-docs/downloading.html#install-in-r

相关问题