[Turn] HBase shell commands scan filter based Hbase common shell commands HBase HBase shell of conventional filter operation

 

Hbase commonly used shell commands  https://www.cnblogs.com/i80386/p/4105423.html

 

HBase basis of conventional filter operation hbase shell  https://www.cnblogs.com/luogankun/p/3939712.html

 

Row key filter:

hbase(main):003:0> import org.apache.hadoop.hbase.filter.CompareFilter
hbase(main):005:0> import org.apache.hadoop.hbase.filter.SubstringComparator
hbase(main):006:0> scan 'test', {FILTER => org.apache.hadoop.hbase.filter.RowFilter.new(CompareFilter::CompareOp.valueOf('EQUAL'),SubstringComparator.new("word_by_which_you_want_to_search"))}

 

Guess you like

Origin www.cnblogs.com/pekkle/p/11106521.html