我正在尝试运行蜂蜡应用程序的unittest。
在我的机器中,hdfs和hive可以正常工作,但是当我运行unittest(它创建伪hdfs4)时,出现了错误:
StructuredThriftTransportException: Could not connect to localhost:port (code THRIFTTRANSPORT): TTransportException('Could not connect to localhost:port',)
试验name:beeswax.tests.testbeeswaxwithhadoop
日志:
beeswax.server.hive_server2_lib: INFO: Opening beeswax thrift session for user test
root: INFO: Thrift exception; retrying: Could not connect to lwo1-lhp-f70489:44981
root: INFO: Thrift exception; retrying: Could not connect to lwo1-lhp-f70489:44981
root: WARNING: Out of retries for thrift call: OpenSession
root: INFO: Thrift saw a transport exception: Could not connect to lwo1-lhp-f70489:44981
beeswax.test_base: ERROR: Failed to open Hive Server session
Traceback (most recent call last):
File "/home/bdemydov/Projects/roku/roku-hue-3-12/hue-3.12.0/apps/beeswax/src/beeswax/test_base.py", line 131, in get_shared_beeswax_server
db.open_session(user)
File "/home/bdemydov/Projects/roku/roku-hue-3-12/hue-3.12.0/apps/beeswax/src/beeswax/server/dbms.py", line 320, in open_session
return self.client.open_session(user)
File "/home/bdemydov/Projects/roku/roku-hue-3-12/hue-3.12.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 1263, in open_session
return self._client.open_session(user)
File "/home/bdemydov/Projects/roku/roku-hue-3-12/hue-3.12.0/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 604, in open_session
res = self._client.OpenSession(req)
File "/home/bdemydov/Projects/roku/roku-hue-3-12/hue-3.12.0/desktop/core/src/desktop/lib/thrift_util.py", line 389, in wrapper
raise StructuredThriftTransportException(e, error_code=502)
StructuredThriftTransportException: Could not connect to lwo1-lhp-f70489:44981 (code THRIFTTRANSPORT): TTransportException('Could not connect to lwo1-lhp-f70489:44981',)
暂无答案!
目前还没有任何答案,快来回答吧!