我想通过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:内部错误处理scannerOpenWithScan
在python中有任何随机rowfilter示例代码吗?
版本检查是正确的,因为[thrift hbase客户端-支持过滤器和协处理器我运行这个代码…
请帮帮我
我认为happybase没有与随机过滤器相关的过滤器。我误以为happybase使用了HBASE的JAVA类来过滤。但happybase拥有自己的过滤器。因此,我需要制作JAVA应用程序来采样hbase行键