简体   繁体   English

TSocket读取0字节-happybase版本0.8

[英]TSocket read 0 bytes - happybase version 0.8

I'm trying to connect hbase by happybase framework version 0.8. 我正在尝试通过happybase框架版本0.8连接hbase。

I've started daemon thrift - /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 9090 我已经启动了daemon /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 9090 - /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 9090

 from happybase.connection import Connection
 DEFAULT_HOST = '10.128.121.13'
 DEFAULT_PORT = 9090
 DEFAULT_TRANSPORT = 'framed'
 DEFAULT_COMPAT = '0.96'`

 cc = Connection(DEFAULT_HOST,DEFAULT_PORT,None,True,None,'_',DEFAULT_COMPAT,DEFAULT_TRANSPORT) print(cc.tables())`

Do I need to start thrift service in all nodes, Hbase master and RegionServers ? 我是否需要在所有节点(Hbase主服务器和RegionServers)中启动Thrift服务?

I got this error: 我收到此错误:

TSocket read 0 bytes TSocket读取0字节

If it is a distributed cluster, you don't have to run thrift server of each node individually. 如果它是分布式集群,则不必分别运行每个节点的Thrift服务器。

It seems to be issue with instantiation of Connection. 似乎与Connection的实例化有关。 Try following : 尝试以下操作:

conn = happybase.Connection( host='DEFAULT_HOST', port='DEFAULT_PORT', protocol='compact' )

You can also have a look in this issue : https://github.com/wbolster/happybase/issues/193 您也可以看看这个问题: https : //github.com/wbolster/happybase/issues/193

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Happybase 扫描远程 hbase 表时,发生“Tsocket read 0 bytes Error” - When scan remote hbase table using Happybase, 'Tsocket read 0 bytes Error' happens TSocket读取0字节 - TSocket read 0 bytes Cloudera/CDH v6.1.x + Python HappyBase v1.1.0: TTransportException(type=4, message='TSocket read 0 bytes') - Cloudera/CDH v6.1.x + Python HappyBase v1.1.0: TTransportException(type=4, message='TSocket read 0 bytes') TSocket读取0个字节Apache Thrift MongoDB - TSocket read 0 bytes Apache Thrift MongoDB python thrift错误```TSocket读取0字节``` - python thrift error ```TSocket read 0 bytes``` 长时间运行的Hive插入查询期间“ TSocket读取0字节” - “TSocket read 0 bytes” during a long running Hive insert query 长时间通话的节俭超时:thrift.transport.TTransport.TTransportException:TSocket读取0个字节 - thrift timeout for long run call: thrift.transport.TTransport.TTransportException: TSocket read 0 bytes registration_complete模板未与django-registration的0.8版本一起显示 - registration_complete template not shown with 0.8 version of django-registration Pandas 0.8 read_csv无法识别'dtype'参数 - Pandas 0.8 read_csv not recognizing 'dtype' parameter OpenSSL:错误:1409442E:SSL 例程:ssl3_read_bytes:tlsv1 警报协议版本 - OpenSSL: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM