thriftpy.transport.ttTransportException:ttTransportException(type=1,message=“could not connect to('localhost',9090)”)

f45qwnt8  于 2021-06-09  发布在  Hbase
关注(0)|答案(0)|浏览(598)

我在通过python连接hbase时遇到了节俭错误。请在下面找到错误跟踪-

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
运输-框架
协议-紧凑
thrift start命令-./hbase-daemon.sh start thrift-hsha
以前,我使用过相同配置的hbase版本1.4.6和2.0.1。在使用1.4.6时,我没有遇到任何节俭错误。谁能指导我克服这个错误在hbase最新版本?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题