thriftpy.transport.TTransportException:TTransportException(type = 1,message =“无法连接到('localhost',9090)”)

时间:2019-02-14 03:23:51

标签: python-3.x hbase thrift happybase

通过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配置看起来像这样

  
      
  • Python -3.6.7
  •   
  • HBase版本-2.1.2
  •   
  • Happybase版本-1.1.0
  •   
  • 运输-带框
  •   
  • 协议-紧凑型
  •   
  • 节俭启动命令-./hbase-daemon.sh start thrift -hsha
  •   

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

0 个答案:

没有答案