TypeError('__str__ returned non-string (type bytes)

happybase连接hbase成功,但是.tables()运行却发生了报错,最后在一下网址找到了答案

https://github.com/Thriftpy/thriftpy/issues/283

happybase只支持thrift1不支持thrift2,所以启动时只能启动thrift1

 

然后又报错:

java.lang.IllegalArgumentException: object is not an instance of declaring class

原因是hbase2.3和2.4运行在hadoop 3.3需要额外参数:

<property> <name>hbase.wal.provider</name> <value>filesystem</value> </property>

然后就可以了。

 

然后是额外参考网页:

https://www.cnblogs.com/live41/p/15497029.html

 

posted @ 2022-09-08 22:57  初落  阅读(181)  评论(0)    收藏  举报