当前位置: 首页 > 工具软件 > ThriftPy > 使用案例 >

happybase thriftpy2.transport.TTransportException: TTransportException(“Could not connect to(9090)问题

陆翰学
2023-12-01

一、用python使用happybash库连接hbase,出现异常

thriftpy2.transport.TTransportException: TTransportException(type=1, message=“Could not connect to (‘localhost’, 9090)”)

二、原因
因为hbase是java编写的,用python就需要打开hbase的thrift接口服务器

hbase thrift start-port:9090

注意:启动服务之后不会出现命令输入行

 类似资料: