简体   繁体   中英

Unable to Import File using h2o in Python

I'm trying to import a file using h2o in Python.

h2o.init() is successful, but when I do the following:

df = h2o.import_file(path = "Combined Database - 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',))

Above it, there are “OSError”, “NewConnectionError”, “MaxRetryError”.

This is my first time using h2o, and I can't even import my data. Any help would be much appreciated!

please see the user guide: 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? And if so, does h2o.init() then connect to it?

  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).

  5. Shutdown h2o (h2o.shutdown()) and try running h2o.init() and see if it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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