当我使用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)
连接是正确的,但是扫描显示如下错误,我不知道为什么会这样,但是我认为节俭有问题:
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
,任何人都可以给我一些建议。