简体   繁体   English

无法在Python中使用h2o导入文件

[英]Unable to Import File using h2o in Python

I'm trying to import a file using h2o in Python. 我正在尝试在Python中使用h2o导入文件。

h2o.init() is successful, but when I do the following: h2o.init()成功,但是当我执行以下操作时:

df = h2o.import_file(path = "Combined Database - Final.csv") df = h2o.import_file(路径=“组合数据库-Final.csv”)

I get a number of errors that I can't find any help on. 我收到许多错误,找不到任何帮助。 Here is the last one that shows up: 这是显示的最后一个:

H2OConnectionError: Unexpected HTTP error: HTTPConnectionPool(host='127.0.0.1', port=54321): Max retries exceeded with url: /3/Jobs/ $03017f00000132d4ffffffff$_a6edaa906ba7a556a417c13149c940db (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10048] Only one usage of each socket address (protocol/netw ork address/port) is normally permitted',)) H2OConnectionError:意外的HTTP错误:HTTPConnectionPool(host ='127.0.0.1',port = 54321):URL超过最大重试次数:/ 3 / Jobs / $ 03017f00000132d4ffffffff $ _a6edaa906ba7a556a417c13149c940db(由NewConnectionError(':连接失败:无法建立新连接[WinError 10048]每个套接字地址(协议/网络地址/端口)通常仅允许使用一种,'))

Above it, there are “OSError”, “NewConnectionError”, “MaxRetryError”. 其上方是“ OSError”,“ NewConnectionError”,“ MaxRetryError”。

This is my first time using h2o, and I can't even import my data. 这是我第一次使用h2o,甚至无法导入数据。 Any help would be much appreciated! 任何帮助将非常感激!

please see the user guide: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/starting-h2o.html 请参阅用户指南: http : //docs.h2o.ai/h2o/latest-stable/h2o-docs/starting-h2o.html

please also run the following tests (reposted from here ) to debug your issue. 请同时运行以下测试(从此处转发)以调试您的问题。

  1. Does running h2o.jar from the commandline work? 从命令行运行h2o.jar是否可以正常工作? And if so, does h2o.init() then connect to it? 如果是这样,那么h2o.init()是否可以连接到它?

  2. What do the logs say? 日志怎么说?

  3. Disable your firewall, and see if it makes a difference. 禁用防火墙,然后查看是否有所作为。 (Remember to re-enable it afterwards). (请记住,之后再重新启用它)。

  4. Try a different port number (the default is 54321). 尝试使用其他端口号(默认为54321)。

  5. Shutdown h2o (h2o.shutdown()) and try running h2o.init() and see if it works. 关闭h2o(h2o.shutdown()),然后尝试运行h2o.init(),看看它是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM