Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49BFF102BB for ; Tue, 31 Dec 2013 06:02:32 +0000 (UTC) Received: (qmail 20677 invoked by uid 500); 31 Dec 2013 06:02:13 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 20583 invoked by uid 500); 31 Dec 2013 06:02:11 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 20573 invoked by uid 99); 31 Dec 2013 06:02:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 06:02:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ranjinibecse@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Dec 2013 06:02:05 +0000 Received: by mail-la0-f48.google.com with SMTP id n7so5907424lam.7 for ; Mon, 30 Dec 2013 22:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yrL2y5mDNeETAxXGATJoeHSieEkvb818Ey1stBgDKJw=; b=vH3rya9Ei8slhDZsEFMil2O1XpFRqsMQRLNAlIN1LITDyOfBiCL1tMS6tzVzDkgVo1 saM4UftCqyi8wSEDggVgjYCGu+oBD0ZIsfEpnMtzZpvLVuRqAa/nrh8JyL0XaPcfV9tN YErd7rjUY9+FI4iapWN2E0S4rv1H0I8NT3HeK38takC+1PduJZ1PKKiXupGkpoi7rryB gkrXIh3Ljnr9i+fxJUZTVxBvyzd5433QEtooVzHJsdfzPT5e/a8x+yar3aUPVMk6UXzJ CyednnQhK6wm6h6SRzqPf6baUCHXfw74cniqsRrJYSljf514FUaKE+hrdGNFZcOfsG7L RfiA== MIME-Version: 1.0 X-Received: by 10.112.150.164 with SMTP id uj4mr12989538lbb.46.1388469703779; Mon, 30 Dec 2013 22:01:43 -0800 (PST) Received: by 10.152.131.165 with HTTP; Mon, 30 Dec 2013 22:01:43 -0800 (PST) Date: Tue, 31 Dec 2013 11:31:43 +0530 Message-ID: Subject: LookUp in mapreduce From: Ranjini Rathinam To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b3434bc79a96604eece4bd3 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3434bc79a96604eece4bd3 Content-Type: text/plain; charset=ISO-8859-1 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 --047d7b3434bc79a96604eece4bd3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
=A0
I want to compare the value from one hbase table to another hbase tabl= e value , and need to add one column as valid indicator
=A0
if value is matching mark the field has 0 or not matching means 1.
=A0
i have used Filter command in mapreduce code
=A0
but the column is not printing in hbase table.
=A0
if(Bytes.toBytes(kv1.getValue).equals("RRR")){
put.add(Bytes.toBytes("cf"),Bytes.toBytes("valid_ind&qu= ot;),Bytes.toBytes("0"))
}
else{
put.add(Bytes.toBytes("cf"),Bytes.toBytes("valid_ind&qu= ot;),Bytes.toBytes("1"))
}
=A0
=A0
but the column valid_ind is not printing.
=A0
Please help with sample code to fix .
=A0
thanks in advance
=A0
Ranjini.R
=A0
--047d7b3434bc79a96604eece4bd3--