0
votes

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!

1
please include a complete code snippet, include the code you used to start h2o, include what version of h2o you are using. And please verify that h2o is not already running somewhere else.Lauren
import sys import h2o h2o.remove_all() h2o.init() from h2o.estimators.random_forest import H2ORandomForestEstimator df = h2o.import_file(path = "Combined Database - Final.csv")pixiesweet44
and i just downloaded h2o today, so it's the latest version.pixiesweet44

1 Answers

0
votes

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.