我想用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中有没有RandomRowFilter示例的示例代码?
版本检查是正确的,因为[thrift hbase client - support filters and coprocessors I ran this code...
请帮帮我
发布于 2015-10-30 09:19:45
我认为happybase没有与随机性过滤器相关的过滤器。我错误地认为happybase使用了与过滤器相关的HBASE JAVA类。但是happybase拥有他们的过滤器。所以我需要制作JAVA应用程序来采样hbase行键
https://stackoverflow.com/questions/33346800
复制相似问题