简体   繁体   English

协议错误:没有协议版本头

[英]ProtocolError: No protocol version header

I have hortonworks cluster with versions as below:我有以下版本的 hortonworks 集群:

  • hbase = 1.1.2 hbase = 1.1.2
  • happybase=1.1.0快乐基地=1.1.0
  • hortonworks hadoop cluster = HDP-2.6.2.0 hortonworks hadoop 集群 = HDP-2.6.2.0

When I try to run simple example:当我尝试运行简单示例时:

import happybase
server = "server-address"
connection = happybase.Connection(server)
print connection.tables()

I got this exception:我得到了这个例外:

Traceback (most recent call last):
  File "/Users/psobolewski/hbase_urls.py", line 19, in <module>
    print connection.tables()
  File "/Library/Python/2.7/site-packages/happybase/connection.py", line 242, in tables
    names = self.client.getTableNames()
  File "/Library/Python/2.7/site-packages/thriftpy/thrift.py", line 198, in _req
    return self._recv(_api)
  File "/Library/Python/2.7/site-packages/thriftpy/thrift.py", line 210, in _recv
    fname, mtype, rseqid = self._iprot.read_message_begin()
  File "thriftpy/protocol/cybin/cybin.pyx", line 439, in cybin.TCyBinaryProtocol.read_message_begin (thriftpy/protocol/cybin/cybin.c:6470)
cybin.ProtocolError: No protocol version header

尝试更改 port=2181 并检查 hbase-site.xml

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM