我想通过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我运行了这段代码,版本检查没问题...
请帮我