h2oに設定されたデータを読み込めません。私は同じコードを昨日問題なく走らせることができたとき、同じH2oサーバーエラーを抱えています。H2OServerError:HTTP 500サーバーエラー:サーバーエラーwater.util.DistributedException:
import h2o
h2o.init()
h2o.import_file('train_csv')
train_csvは同じディレクトリにあり、スパークデータフレームから上の行に保存されます。私は同じエラーを取得し続ける:
H2OServerError Traceback (most recent call last)
<ipython-input-3-d9a5a8533622> in <module>()
----> 1 h2o.import_file('train_csv')
/home/.local/lib/python3.5/site-packages/h2o/h2o.py in import_file(path,
destination_frame, parse, header, sep, col_names, col_types, na_strings,
pattern)
405 return lazy_import(path, pattern)
406 else:
--> 407 return H2OFrame()._import_parse(path, pattern,
destination_frame, header, sep, col_names, col_types, na_strings)
408
409
/home/.local/lib/python3.5/site-packages/h2o/frame.py in _import_parse(self,
path, pattern, destination_frame, header, separator, column_names,
column_types, na_strings)
306 path = os.path.abspath(path)
307 rawkey = h2o.lazy_import(path, pattern)
--> 308 self._parse(rawkey, destination_frame, header, separator,
column_names, column_types, na_strings)
309 return self
310
/home/.local/lib/python3.5/site-packages/h2o/frame.py in _parse(self,
rawkey, destination_frame, header, separator, column_names, column_types,
na_strings)
319 def _parse(self, rawkey, destination_frame="", header=None,
separator=None, column_names=None, column_types=None,
320 na_strings=None):
--> 321 setup = h2o.parse_setup(rawkey, destination_frame, header,
separator, column_names, column_types, na_strings)
322 return self._parse_raw(setup)
323
/home/.local/lib/python3.5/site-packages/h2o/h2o.py in
parse_setup(raw_frames, destination_frame, header, separator, column_names,
column_types, na_strings)
550 kwargs["separator"] = ord(separator)
551
--> 552 j = api("POST /3/ParseSetup", data=kwargs)
553 if "warnings" in j and j["warnings"]:
554 for w in j["warnings"]:
/home/.local/lib/python3.5/site-packages/h2o/h2o.py in api(endpoint, data,
json, filename, save_to)
97 # type checks are performed in H2OConnection class
98 _check_connection()
---> 99 return h2oconn.request(endpoint, data=data, json=json,
filename=filename, save_to=save_to)
100
101
/home/.local/lib/python3.5/site-packages/h2o/backend/connection.py in
request(self, endpoint, data, json, filename, save_to)
400 auth=self._auth,
verify=self._verify_ssl_cert, proxies=self._proxies)
401 self._log_end_transaction(start_time, resp)
--> 402 return self._process_response(resp, save_to)
403
404 except (requests.exceptions.ConnectionError,
requests.exceptions.HTTPError) as e:
/home/.local/lib/python3.5/site-packages/h2o/backend/connection.py in
_process_response(response, save_to)
728 # Note that it is possible to receive valid H2OErrorV3
object in this case, however it merely means the server
729 # did not provide the correct status code.
--> 730 raise H2OServerError("HTTP %d %s:\n%r" % (status_code,
response.reason, data))
731
732
H2OServerError: HTTP 500 Server Error:
Server error water.util.DistributedException:
Error: DistributedException from /127.0.0.1:54321
Request: None
ここでの端末出力ではなく、H2Oログからスタックトレースを取得できるかどうかを確認してください。 – TomKraljevic