谢谢你问这个问题,我确实陷入了同样的问题,在互联网上没有答案。不知道我们是不是唯一一个碰到这个的人。在
但下面是我如何解决这个问题的方法,从错误中可以明显看出这与节俭有关,所以请检查以下内容
/usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift
如果节俭不跑!你可能需要开始节俭
/usr/hdp/current/hbase-master/bin/hbase-daemon.sh start thrift -p 9090 infoport 9091
然后试试你的代码。在import happybase
c = happybase.Connection('127.0.0.1',9090, autoconnect=False)
c.open()
print(c.tables())
自动连接到hbase
^{pr2}$
作为一种替代方法,您可以使用starbase,但它不再是活动的,我相信为此您需要启动restapi。
/usr/hdp/current/hbase-master/bin/hbase-daemon.sh start rest -p 8000 inforport 8001
试试happybase,告诉我们你是否遇到了同样的问题。在
顺便说一句,我的测试是在HDP2.5上完成的
除非你知道自己在做什么,否则我不建议你这样做
从hbase中删除以下属性:-站点.xml[/etc/hbase/conf/hbase-站点.xml]
在
hbase.regionserver.thrift.http
true
hbase.thrift.support.proxyuser
true/value>
希望这有帮助,
阿莫德