Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@locus.apache.org Received: (qmail 26154 invoked from network); 4 Dec 2008 16:41:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 16:41:15 -0000 Received: (qmail 88134 invoked by uid 500); 4 Dec 2008 16:41:26 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 88120 invoked by uid 500); 4 Dec 2008 16:41:26 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Delivered-To: moderator for hbase-user@hadoop.apache.org Received: (qmail 5596 invoked by uid 99); 4 Dec 2008 11:47:04 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of abhinit.kumar@gmail.com designates 209.85.217.10 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=aswvuhq0mudreZKGwrpIuKRAfN25zvfnD1AVX2MnHkY=; b=fqrGp7ZZKIoxN0BpNWuK/jtmGsoFPGI91C1ZX08Sb90mCSzSSQjZb6liD5cTbPLjH3 qDW7VbbLrAlCuU5ZVsAvL5iJo+arIIG3s51Hmx0IMIcJokcu8QriF2elTAqn8LgGx/Ik 3rQxREpkTJSkiZc3nGqhA6bHc1GLnwYJDtPVc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Vuy+wcopHnOIBkkU7WKqCAmnBCr9pgK1w7LOvJ/SkvxbtZKVvgHGqSRlFYVKUqm9N8 JW2FioGfUuYCic/8suS0btCriLhE5Qx8crB1eyd/ev+02wralyiCVlcqtWlZtfcn2sH9 Kmkze7/69MxfEOMF8y3AlSQHJhhZnpbnciTj0= Message-ID: <17f5a6ae0812040345k57538e7eneb2cf43d95ac8318@mail.gmail.com> Date: Thu, 4 Dec 2008 06:45:16 -0500 From: abhinit To: hbase-user@hadoop.apache.org Subject: implementing selection/projection using mapreduce MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3601_12093193.1228391116290" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3601_12093193.1228391116290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am implementing basic selection/projection using mapreduce on an HBase table. I have an outer class SelectProject which implements the tool interface and my mapper class, SelectProjectOperator extends TableMap. In my run method, I am parsing the command line argument for things like column names and predicate condition(say key = 10000 etc.) and I have to use these values inside the map method of my mapper class. All the variables to be used in the map function for selection/projection are static variables of the enclosing outer class(SelectProject). I et these variables in run method after parsing the comman-line arguments. However, in the map method I get a NullPointerException because non-of those static member variables are created. I understand this is not exactlt an HBase related issue and has something to do with java inner classes. But I thought this can be a very common case in mapreduce programming (passing a condition variable from the outer class to enclosed mapper class' map method). Thanks a lot for help. -Abhinit -- Abhinit Kumar MSE, Computer & Information Science Class of 2009 University of Pennsylvania 1-215-796-5136 ------=_Part_3601_12093193.1228391116290--