【hbase】使用thrift with python 访问HBase 其中出现的一个错误

下面这个错误我在这篇文章之前发了解决方法,可以翻看最近的一条文章即可

上一个问题主要是修改下面的文件(最后一条报错链接点进去)在488行

还有一个就是改过之后按下面方式还是连不上 是因为thrift 的server端和client端的协议不匹配造成的。(如果没有请忽略)

 修改hbase-site.xml,禁用TFramedTransport和TCompactProtocol功能,即:

    <property>
       <name>hbase.regionserver.thrift.framed</name>
       <value>false</value>
    </property>
    <property>
       <name>hbase.regionserver.thrift.compact</name>
       <value>false</value>
    </property>

重启thrift 服务器:bin/hbase-daemon.sh stop thrift、bin/hbase-daemon.sh start thrift

最后再看看防火墙是否关闭,因为没有关闭也会报错(访问不到服务器)

猜你喜欢

转载自blog.csdn.net/qq_42393859/article/details/82891058