Scan HTable rows for specific column value using HBase shell

前端 未结 7 925
臣服心动
臣服心动 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 19:55

    It is possible without Hive:

    scan 'filemetadata', 
         { COLUMNS => 'colFam:colQualifier', 
           LIMIT => 10, 
           FILTER => "ValueFilter( =, 'binaryprefix:' )" 
         }
    

    Note: in order to find all rows that contain test1 as value as specified in the question, use binaryprefix:test1 in the filter (see this answer for more examples)

提交回复
热议问题