社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
在使用python连接HBase安装各种依赖包的过程中需要根据 HBase 的源码来生成一个gen-py包,我使用的是python3.5,HBase的版本是1.2.6,在/hbase-1.2.6.1/hbase-thrift/src/main/resources/org/apache/hadoop/hbase 文件夹下面有两个文件夹 thrift thrift2,网上查来的许多资料都是使用 thrift下的 Hbase,执行thrift -gen py Hbase.thrift :但是在我这里总是报一个错:
[WARNING:/webapps/hbase-1.2.6.1/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift:89] The "byte" type is a compatibility alias for "i8". Use "i8" to emphasize the signedness of this type.
后来我选择使用 thrift 下的 hbase.thrift:果然成功了
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!