欢迎投稿

今日深度:

python 连接HBase服务器遇到的一个坑,pythonhbase服务器

python 连接HBase服务器遇到的一个坑,pythonhbase服务器


在使用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:果然成功了

www.htsjk.Com true http://www.htsjk.com/hbase/32707.html NewsArticle python 连接HBase服务器遇到的一个坑,pythonhbase服务器 在使用python连接HBase安装各种依赖包的过程中需要根据  HBase 的源码来生成一个gen-py包,我使用的是python3.5,HBase的版本是1.2.6,在/...
相关文章
    暂无相关文章
评论暂时关闭