Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Re: LookUp in mapreduce


Copy link to this message
-
Re: LookUp in mapreduce
-user@hadoop (bcc)

Please ask HBase questions on its own lists ([EMAIL PROTECTED],
you may have to subscribe)

You're constructing a Put object. Do you then call table.put(obj) to
actually send it to the table?

On Tue, Dec 31, 2013 at 11:31 AM, Ranjini Rathinam
<[EMAIL PROTECTED]> wrote:
> 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
>

--
Harsh J
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB