节俭hbase客户端 - 支持过滤器和协处理器 [英] thrift hbase client - support filters and coprocessors
问题描述
可悲的是,我的hbase客户端语言是Python,我现在使用的是基于节俭AFAIK的happybase。我知道节俭到目前为止还不支持过滤器,协处理器(如果我在这里错了,请纠正我)。有人能指出我有任何Jira项目,如果有的话我可以跟踪计划/进度?我只能从Hbase in Action中找到: Thrift服务器匹配新的Java API:
https://issues.apache.org/jira/browse/HBASE-1744
>
第一个看起来不像过滤器,第二个过滤器还没有更新很久。
通过Thrift支持过滤器。这里有一个HappyBase例子:
$ $ p $ $ $ c $ table $ connection $ table
g = table.scan(filter = SingleColumnValueFilter('f','column1',=''substring:text'))
作为键,g中的数据:
打印数据
同时查看 Thrift book 获取有关各种过滤器及其配置的信息。
Sadly, My hbase client language is Python, I am using happybase for now which is based on thrift AFAIK. I know thrift so far is still not supporting filters, coprocessors (correct me if I am wrong here). Can some one point me any Jira items I can track the plan/progress if there is one? The only ones I can find is from "Hbase in Action":
"Thrift server to match the new Java API": https://issues.apache.org/jira/browse/HBASE-1744
"Make Endpoint Coprocessors Available from Thrift": https://issues.apache.org/jira/browse/HBASE-5600
The 1st one doesn't seem covering filters and the 2nd one hasn't been updated for a long while.
Filters are supported through Thrift. Here's a HappyBase example:
table = connection.table("mytable")
g = table.scan(filter="SingleColumnValueFilter ('f', 'column1', =, 'substring:text')")
for key, data in g:
print data
Also check out Thrift book for information on various filters and their configuration.
这篇关于节俭hbase客户端 - 支持过滤器和协处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!