Scan HTable rows for specific column value using HBase shell

前端 未结 7 915
臣服心动
臣服心动 2020-12-12 19:22

I want to scan rows in a HTable from hbase shell where a column family (i.e., Tweet) has a particular value (i.e., user_id).

Now I want to find all

7条回答
  •  不思量自难忘°
    2020-12-12 20:05

    To scan a table in hbase on the basis of any column value, SingleColumnValueFilter can be used as :

    scan 'tablename' ,
       { 
         FILTER => "SingleColumnValueFilter('column_family','col_name',>, 'binary:1')" 
       } 
    

提交回复
热议问题