Hortonworks:无法从python(Happybase)查询HBase thrift服务器

2024-09-26 22:53:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试连接我的hortonworks DP中的HBase thrift服务器。在

我使用的是hdp3.0和apachehbase 2.0.0

我用Kerberos安全性启动HBase thrift服务器

kinit -kt /etc/security/keytabs/hbase.service.keytab hbase/node1.domain.com@domain.com && /usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 12345

一开始我在thrift中得到“无协议版本头”错误。我猜想这是一个协议兼容性错误,所以我尝试了几种方法

  • 我读到thirft2没有happybase支持,所以我用easybase进行了测试,它是happybase的分支,支持thrift2。几分钟后(超时?)在

-后来我试着用“thirft2”代替“thrift”,因为我发现它们是不同的:

^{pr2}$

但也有同样的错误。在

我的代码如下:

^{3}$

happybase而不是easybase也有同样的错误

谢谢


Tags: 服务器com协议domain错误kerberosthriftdp

热门问题