节俭hbase客户端 - 支持过滤器和协处理器 [英] thrift hbase client - support filters and coprocessors

查看:165
本文介绍了节俭hbase客户端 - 支持过滤器和协处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可悲的是,我的hbase客户端语言是Python,我现在使用的是基于节俭AFAIK的happybase。我知道节俭到目前为止还不支持过滤器,协处理器(如果我在这里错了,请纠正我)。有人能指出我有任何Jira项目,如果有的话我可以跟踪计划/进度?我只能从Hbase in Action中找到:

>

第一个看起来不像过滤器,第二个过滤器还没有更新很久。

解决方案

通过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":

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆