happybase出现Hbase扫描错误
当我使用happybase扫描hbase时happybase出现Hbase扫描错误,hbase,Hbase,当我使用happybase扫描hbase时 In [4]: connection = happybase.Connection('192.168.31.34', protocol="compact") In [5]: table = connection.table('flash_news') In [6]: for key,data in table.scan(): ...: print(key, data) 连接是正确的,但扫描显示如下错误,我不知道为什么会发生这种情况
In [4]: connection = happybase.Connection('192.168.31.34',
protocol="compact")
In [5]: table = connection.table('flash_news')
In [6]: for key,data in table.scan():
...: print(key, data)
连接是正确的,但扫描显示如下错误,我不知道为什么会发生这种情况,但我认为节俭有问题:
thriftpy/transport/buffered/cybuffered.pyx in
thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.read
(thriftpy/transport/buffered/cybuffered.c:1625)()
thriftpy/transport/cybase.pyx in
thriftpy.transport.cybase.CyTransportBase.get_string
(thriftpy/transport/cybase.c:2294)()
thriftpy/transport/buffered/cybuffered.pyx in
thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.c_read
(thriftpy/transport/buffered/cybuffered.c:1881)()
thriftpy/transport/buffered/cybuffered.pyx in
thriftpy.transport.buffered.cybuffered.TCyBufferedTransport.read_trans
(thriftpy/transport/buffered/cybuffered.c:1948)()
thriftpy/transport/cybase.pyx in
thriftpy.transport.cybase.TCyBuffer.read_trans
(thriftpy/transport/cybase.c:1472)()
/home/vagrant/.pyenv/versions/news/local/lib/python2.7/site-
packages/thriftpy/transport/socket.pyc in read(self, sz)
123 if len(buff) == 0:
124 raise
TTransportException(type=TTransportException.END_OF_FILE,
--> 125 message='TSocket read
0 bytes')
126 return buff
127
TTransportException: TTransportException(message='TSocket read 0 bytes', type=4)
我的
happybase
版本是1.1.0
,Hbase是2.1.0
,任何人都可以给我一些建议。如果我像您一样添加protocol=“compact”参数,我可以重新创建相同的错误。然而,没有它,一切都很好。你为什么需要它?也许尝试移除它?@VS\u FF,移除compact,然后一切正常,谢谢。事实上,我从一开始就没有使用protocal,但它也有问题。不管怎样,非常感谢。