0
我想 (由於內存限制)happybase在HBase的採樣rowkey所以我搜索和implemet如何運行RandomRowFilter在happybase
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沒事,我跑這個代碼...
請幫我