0

我想通过happybase对hbase中的rowkey进行采样(因为内存限制)所以我​​搜索并实现

import happybase

"""~ """"
table = connection.table('drivers')
a=list(table.scan(filter="RandomRowFilter (chance=0.1f)" ))
or a=list(table.scan(filter="RandomRowFilter ('chance',=,'0.1')" ))
print a

但它总是说 thrift.Thrift.TApplicationException: Internal error processing scannerOpenWithScan

python中是否有RandomRowFilter示例的示例代码?

由于 [ thrift hbase client - support filters and coprocessors我运行了这段代码,版本检查没问题...

请帮我

4

1 回答 1

0

我认为happybase 没有与randomfilter 相关的过滤器。我误认为happybase 使用了与过滤器相关的HBASE JAVA 类。但happybase 拥有他们的过滤器。所以我需要制作 JAVA 应用程序来采样 hbase 行键

于 2015-10-30T01:19:44.903 回答