Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java H2OServerError:在Mac上运行h2o.init()时,Python中的服务器进程终止,错误代码为1_Java_Python_Macos_H2o - Fatal编程技术网

Java H2OServerError:在Mac上运行h2o.init()时,Python中的服务器进程终止,错误代码为1

Java H2OServerError:在Mac上运行h2o.init()时,Python中的服务器进程终止,错误代码为1,java,python,macos,h2o,Java,Python,Macos,H2o,我已经使用pip安装安装了h2o的最新稳定版本,然后在运行h2o.init()时,我得到了以下错误 Checking whether there is an H2O instance running at http://localhost:54321..... not found. Attempting to start a local H2O server... Java Version: java version "10.0.1" 2018-04-17; Java(TM) SE Runt

我已经使用pip安装安装了h2o的最新稳定版本,然后在运行h2o.init()时,我得到了以下错误

Checking whether there is an H2O instance running at http://localhost:54321..... not found.
Attempting to start a local H2O server...
  Java Version: java version "10.0.1" 2018-04-17; Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10); Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
  Starting server from /anaconda3/lib/python3.6/site-packages/h2o/backend/bin/h2o.jar
  Ice root: /var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y
  JVM stdout: /var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y/h2o_nikhil_started_from_python.out
  JVM stderr: /var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y/h2o_nikhil_started_from_python.err
---------------------------------------------------------------------------
H2OConnectionError                        Traceback (most recent call last)
/anaconda3/lib/python3.6/site-packages/h2o/h2o.py in init(url, ip, port, https, insecure, username, password, cookies, proxy, start_h2o, nthreads, ice_root, enable_assertions, max_mem_size, min_mem_size, strict_version_check, ignore_config, extra_classpath, **kwargs)
    251                                      _msgs=("Checking whether there is an H2O instance running at {url}",
--> 252                                             "connected.", "not found."))
    253     except H2OConnectionError:

/anaconda3/lib/python3.6/site-packages/h2o/backend/connection.py in open(server, url, ip, port, https, auth, verify_ssl_certificates, proxy, cookies, verbose, _msgs)
    317             conn._timeout = 3.0
--> 318             conn._cluster = conn._test_connection(retries, messages=_msgs)
    319             # If a server is unable to respond within 1s, it should be considered a bug. However we disable this

/anaconda3/lib/python3.6/site-packages/h2o/backend/connection.py in _test_connection(self, max_retries, messages)
    587             raise H2OConnectionError("Could not establish link to the H2O cloud %s after %d retries\n%s"
--> 588                                      % (self._base_url, max_retries, "\n".join(errors)))
    589 

H2OConnectionError: Could not establish link to the H2O cloud http://localhost:54321 after 5 retries
[28:07.29] H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='localhost', port=54321): Max retries exceeded with url: /3/Cloud (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111d2b080>: Failed to establish a new connection: [Errno 61] Connection refused',))
[28:07.50] H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='localhost', port=54321): Max retries exceeded with url: /3/Cloud (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111d1c978>: Failed to establish a new connection: [Errno 61] Connection refused',))
[28:07.71] H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='localhost', port=54321): Max retries exceeded with url: /3/Cloud (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111d2ba58>: Failed to establish a new connection: [Errno 61] Connection refused',))
[28:07.93] H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='localhost', port=54321): Max retries exceeded with url: /3/Cloud (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111d4b160>: Failed to establish a new connection: [Errno 61] Connection refused',))
[28:08.14] H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='localhost', port=54321): Max retries exceeded with url: /3/Cloud (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111d4b828>: Failed to establish a new connection: [Errno 61] Connection refused',))
检查是否有H2O实例在运行http://localhost:54321..... 没有找到。
正在尝试启动本地H2O服务器。。。
Java版本:Java版本“10.0.1”2018-04-17;Java(TM)SE运行时环境18.3(构建10.0.1+10);Java HotSpot(TM)64位服务器VM 18.3(构建10.0.1+10,混合模式)
从/anaconda3/lib/python3.6/site-packages/h2o/backend/bin/h2o.jar启动服务器
冰根:/var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y
JVM stdout:/var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y/h2o_nikhil_从python.out开始
JVM stderr:/var/folders/cm/rqcrr3rx145f85_k4z_1vkfm0000gn/T/tmpafw3fd0y/h2o_nikhil_从_python.err开始
---------------------------------------------------------------------------
H2OConnectionError回溯(上次最近的呼叫)
/init中的anaconda3/lib/python3.6/site-packages/h2o/h2o.py(url、ip、端口、https、不安全、用户名、密码、cookies、代理、start\u h2o、nthreads、ice\u root、enable\u断言、最大内存大小、最小内存大小、严格的版本检查、忽略配置、额外的类路径、**kwargs)
251 _msgs=(“检查是否有H2O实例在{url}上运行”,
-->252“已连接”,“未找到”。)
253除H2O连接错误外:
/anaconda3/lib/python3.6/site-packages/h2o/backend/connection.py处于打开状态(服务器、url、ip、端口、https、身份验证、验证ssl证书、代理、cookie、详细信息、MSG)
317连接超时=3.0
-->318连接群集=连接测试连接(重试,消息=\u MSG)
319#如果服务器在1s内无法响应,则应将其视为错误。但是我们禁用了这个
/anaconda3/lib/python3.6/site-packages/h2o/backend/connection.py in_test_connection(self、max_重试次数、消息)
587 raise H2O ConnectionError(“在%d次重试后无法建立到H2O云%s的链接\n%s”
-->588%(self.\u base\u url,最大重试次数,“\n”.join(错误)))
589
H2OConnectionError:无法建立到H2O云的链接http://localhost:54321 5次重试后
[28:07.29]H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host='localhost',port=54321):url:/3/云超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 61]连接被拒绝',))
[28:07.50]H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host='localhost',port=54321):url:/3/云超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 61]连接被拒绝',))
[28:07.71]H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host='localhost',port=54321):url:/3/云超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 61]连接被拒绝',))
[28:07.93]H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host='localhost',port=54321):url:/3/云超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 61]连接被拒绝',))
[28:08.14]H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host='localhost',port=54321):url:/3/云超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 61]连接被拒绝',))
在处理上述异常期间,发生了另一个异常:

H2OServerError                            Traceback (most recent call last)
<ipython-input-10-95453bf1556d> in <module>()
----> 1 h2o.init()

/anaconda3/lib/python3.6/site-packages/h2o/h2o.py in init(url, ip, port, https, insecure, username, password, cookies, proxy, start_h2o, nthreads, ice_root, enable_assertions, max_mem_size, min_mem_size, strict_version_check, ignore_config, extra_classpath, **kwargs)
    259             raise H2OConnectionError('Can only start H2O launcher if IP address is localhost.')
    260         hs = H2OLocalServer.start(nthreads=nthreads, enable_assertions=enable_assertions, max_mem_size=mmax,
--> 261                                   min_mem_size=mmin, ice_root=ice_root, port=port, extra_classpath=extra_classpath)
    262         h2oconn = H2OConnection.open(server=hs, https=https, verify_ssl_certificates=not insecure,
    263                                      auth=auth, proxy=proxy,cookies=cookies, verbose=True)

/anaconda3/lib/python3.6/site-packages/h2o/backend/server.py in start(jar_path, nthreads, enable_assertions, max_mem_size, min_mem_size, ice_root, port, extra_classpath, verbose)
    119         if verbose: print("Attempting to start a local H2O server...")
    120         hs._launch_server(port=port, baseport=baseport, nthreads=int(nthreads), ea=enable_assertions,
--> 121                           mmax=max_mem_size, mmin=min_mem_size)
    122         if verbose: print("  Server is running at %s://%s:%d" % (hs.scheme, hs.ip, hs.port))
    123         atexit.register(lambda: hs.shutdown())

/anaconda3/lib/python3.6/site-packages/h2o/backend/server.py in _launch_server(self, port, baseport, mmax, mmin, ea, nthreads)
    306         while True:
    307             if proc.poll() is not None:
--> 308                 raise H2OServerError("Server process terminated with error code %d" % proc.returncode)
    309             ret = self._get_server_info_from_logs()
    310             if ret:

H2OServerError: Server process terminated with error code 1
H2OServerError回溯(最近一次调用)
在()
---->1 h2o.init()
/init中的anaconda3/lib/python3.6/site-packages/h2o/h2o.py(url、ip、端口、https、不安全、用户名、密码、cookies、代理、start\u h2o、nthreads、ice\u root、enable\u断言、最大内存大小、最小内存大小、严格的版本检查、忽略配置、额外的类路径、**kwargs)
259 raise H2O ConnectionError('仅当IP地址为localhost时才能启动H2O启动器')
260 hs=H2OLocalServer.start(nthreads=nthreads,enable_断言=enable_断言,max_mem_size=mmax,
-->261 min\u mem\u size=mmin,ice\u root=ice\u root,port=port,extra\u classpath=extra\u classpath)
262 h2oconn=H2OConnection.open(服务器=hs,https=https,验证\u ssl\u证书是否不安全,
263 auth=auth,proxy=proxy,cookies=cookies,verbose=True)
/开始时的anaconda3/lib/python3.6/site-packages/h2o/backend/server.py(jar_路径、nthreads、enable_断言、max_mem_大小、min_mem_大小、ice_根、端口、额外类路径、verbose)
119如果详细:打印(“尝试启动本地H2O服务器…”)
120 hs.\u启动\u服务器(port=port,baseport=baseport,nthreads=int(nthreads),ea=enable\u断言,
-->121 mmax=最大内存大小,mmin=最小内存大小)
122如果详细:打印(“服务器运行在%s://%s:%d”%(hs.scheme、hs.ip、hs.port))
123 atexit.寄存器(lambda:hs.shutdown())
/anaconda3/lib/python3.6/site-packages/h2o/backend/server.py in_launch_server(self、port、baseport、mmax、mmin、ea、nthreads)
306虽然正确:
307如果proc.poll()不是无:
-->308服务器错误(“服务器进程终止,错误代码为%d”%proc.returncode)
309 ret=self.\u从\u日志()获取\u服务器\u信息\u
310如果ret:
H2OServerError:服务器进程终止,错误代码为1

目前不支持Java版本10。 尝试安装java版本8