hbase通過shell查詢數據

//根據rowKey前綴查詢數據
scan 'cbd:prod_cmnt', {FILTER => org.apache.hadoop.hbase.filter.PrefixFilter.new(org.apache.hadoop.hbase.util.Bytes.toBytes('6b|6b0d114f|79809671'))}
//根據列值查詢數據
scan "cbd:prod_cmnt",{COLUMNS=>'cf1:Url',FILTER=>"ValueFilter(=,'substring:item.gome.com.cn/999999999.html') ",LIMIT=>10}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章