2

通过 Python 连接到 HBase 时遇到 Thrift 错误。请在下面找到错误跟踪 -

File "/usr/local/lib/python3.6/dist-packages/happybase/pool.py", line 147, in connection
connection.open()
File "/usr/local/lib/python3.6/dist- packages/happybase/connection.py", line 176, in open
self.transport.open()
File "thriftpy/transport/framed/cyframed.pyx", line 113, in thriftpy.transport.framed.cyframed.TCyFramedTransport.open (thriftpy/transport/framed/cyframed.c:2476)
File "/usr/local/lib/python3.6/dist- packages/thriftpy/transport/socket.py", line 104, in open message="Could not connect to %s" % str(addr))
thriftpy.transport.TTransportException: TTransportException(type=1, message="Could not connect to ('localhost', 9090)")

我该如何解决这个错误?

我的 Hbase 配置如下所示

  • 蟒蛇- 3.6.7
  • HBase 版本- 2.1.2
  • Happybase 版本- 1.1.0
  • 运输- 装裱
  • 协议- 紧凑
  • Thrift 启动命令- ./hbase-daemon.sh start thrift -hsha

之前,我使用过具有相同配置的 Hbase 版本1.4.62.0.1 。使用1.4.6时我没有遇到任何 Thrift 错误。谁能指导我克服 HBase 最新版本中的这个错误?

4

0 回答 0