H2O Python: cannot connect locally if running as non-root user. Got 503 error.

76 views
Skip to first unread message

patn...@gmail.com

unread,
Jan 2, 2018, 3:58:02 AM1/2/18
to H2O Open Source Scalable Machine Learning - h2ostream
Hi,

On a CentOS 6 machine, as a non-root user, in Python I can start an H2O (version: 3.16.0.2) cluster locally:

>>> 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 "1.8.0_91"; Java(TM) SE Runtime Environment (build 1.8.0_91-b14); Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Starting server from /python/ENV/lib/python2.7/site-packages/h2o/backend/bin/h2o.jar
Ice root: /tmp/tmp0fQLZv
JVM stdout: /tmp/tmp0fQLZv/h2o_patrickng_started_from_python.out
JVM stderr: /tmp/tmp0fQLZv/h2o_patrickng_started_from_python.err
Server is running at http://127.0.0.1:54321


However, after it has successfully started it, it cannot connect to it:
Connecting to H2O server at http://127.0.0.1:54321...................... failed.
H2OConnectionError: Could not establish link to the H2O cloud http://127.0.0.1:54321 after 20 retries
[54:14.52] H2OServerError: HTTP 503 Service Unavailable:


I have verified that the server is running okay, because on the same machine I can connect to it using either R as a non-root user, or thru Python as a root user. It's only connecting thru Python as a non-root user that it failed.

Wonder if anyone has seen this before? I couldn't find any error in the H2O server logs.


- Patrick

Reply all
Reply to author
Forward
0 new messages