Member since
05-10-2017
2
Posts
0
Kudos Received
0
Solutions
05-10-2017
10:02 AM
Got the solution: echo "scan 'table1' ,{
FILTER => \"(SingleColumnValueFilter('Details','col2',!=,
'binary:XYZ')) AND (QualifierFilter (=, 'binary:col1'))\"}" |hbase shell
|grep ABC |awk '{print $1}'
... View more
05-10-2017
07:55 AM
I have a hbase table table1. Now i need to write a shell command to
pick the row value by keeping filter on two columns like (c1='ABC' and
c2<>'xyz'). Please help here. Here is the command i used: echo "scan 'table1', {COLUMNS => ['Details'],FILTER =>
\"(SingleColumnValueFilter('Details','ABC',=,'binary:col1',true,true))
AND
(SingleColumnValueFilter('Details','XYZ',!=,'binary:col2',true,true))\"}"|hbase
shell
... View more
Labels:
- Labels:
-
Apache HBase