hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranjini Rathinam <ranjinibe...@gmail.com>
Subject LookUp in mapreduce
Date Tue, 31 Dec 2013 06:01:43 GMT
Hi,

I want to compare the value from one hbase table to another hbase table
value , and need to add one column as valid indicator

if value is matching mark the field has 0 or not matching means 1.

i have used Filter command in mapreduce code

but the column is not printing in hbase table.

if(Bytes.toBytes(kv1.getValue).equals("RRR")){
put.add(Bytes.toBytes("cf"),Bytes.toBytes("valid_ind"),Bytes.toBytes("0"))
}
else{
 put.add(Bytes.toBytes("cf"),Bytes.toBytes("valid_ind"),Bytes.toBytes("1"))
}


but the column valid_ind is not printing.

Please help with sample code to fix .

thanks in advance

Ranjini.R

Mime
View raw message