R中的H2O错误-无法连接到本地主机 [英] Error with H2O in R - can't connect to local host

查看:209
本文介绍了R中的H2O错误-无法连接到本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在R中运行h2o.它显示以下错误.不知道这意味着什么.以前它给我一个错误,因为我没有Java 64位版本.我下载了64位-重新启动了我的PC-并再次开始了该过程,现在它给了我这个错误.

I can't get the h2o to work in my R. It shows the following error. Have no clue what it means. Previously it gave me an error because I didn't have Java 64 bit version. I downloaded the 64bit - restarted my pc - and started the process again and now it gives me this error.

有什么建议吗?

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 

在R中出现h2o错误的屏幕截图

推荐答案

基于错误消息和我们在注释中进行的故障排除,看来您使用的Java版本太新(Java 1.9)您的H2O版本.

Based on the error message and the troubleshooting we carried out in the comments, it seems that you are using a version of Java (Java 1.9) which is too new for your version of H2O.

您的2个选项似乎是:

  1. 验证您的H2O版本是最新的.如果没有,请对其进行更新.
  2. 下载Java的兼容版本,即 Java 1.8 (如果愿意,您可以仅将其用于1个任务,而不是用于所有任务)
  1. Verify that your version of H2O is up to date. If not, update it.
  2. Download a compatible version of Java, i.e. Java 1.8 (you can just use it for this 1 task rather than for everything, if you prefer)

请注意,在H2O v3的主文档页面上显示:

Note that on the main documentation page of H2O v3 it says:

Java 7或更高版本.注意:Java 9尚未发布,并且当前尚未发布 支持.

Java 7 or later. Note: Java 9 is not yet released and is not currently supported.

但是同时,它们通常会有多个Beta和Alpha开发分支,因此您可能会发现其中一个与Java 9兼容的分支.

But at the same time they usually have several Beta and Alpha development branches going, so you might find one of those that works with Java 9.

这篇关于R中的H2O错误-无法连接到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆