Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5D9E9AFF for ; Tue, 26 Jun 2012 07:32:07 +0000 (UTC) Received: (qmail 50483 invoked by uid 500); 26 Jun 2012 07:32:05 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 50298 invoked by uid 500); 26 Jun 2012 07:32:04 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 50273 invoked by uid 99); 26 Jun 2012 07:32:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 07:32:04 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of Prakrati.Agrawal@mu-sigma.com does not designate 216.82.255.3 as permitted sender) Received: from [216.82.255.3] (HELO mail209.messagelabs.com) (216.82.255.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 07:31:57 +0000 X-Env-Sender: Prakrati.Agrawal@mu-sigma.com X-Msg-Ref: server-14.tower-209.messagelabs.com!1340695894!6926688!2 X-Originating-IP: [216.166.12.178] X-StarScan-Version: 6.5.10; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3130 invoked from network); 26 Jun 2012 07:31:36 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.178) by server-14.tower-209.messagelabs.com with RC4-SHA encrypted SMTP; 26 Jun 2012 07:31:36 -0000 Received: from AUSP01VMBX11.collaborationhost.net ([10.2.8.165]) by AUSP01MHUB04.collaborationhost.net ([10.2.0.189]) with mapi; Tue, 26 Jun 2012 02:31:34 -0500 From: Prakrati Agrawal To: "user@hbase.apache.org" Date: Tue, 26 Jun 2012 02:29:18 -0500 Subject: Getting Null Pointer Exception when using Map Reduce for retrieval Thread-Topic: Getting Null Pointer Exception when using Map Reduce for retrieval Thread-Index: Ac1TbWWqD5Wvx62lRRaXGzcWtbkzxA== Message-ID: <7073291669E5764EB68B5914AC4204744E058664A1@AUSP01VMBX11.collaborationhost.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {820A57D6-446B-4996-A830-466F44EAD3FE} x-cr-hashedpuzzle: Aywv Ct7h DhiZ FDam Fdn6 FpXk GcJ1 G04u IKMg IRdC ISlj IkNm I5Ad LAbz LZ6U LjOj;1;dQBzAGUAcgBAAGgAYgBhAHMAZQAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{820A57D6-446B-4996-A830-466F44EAD3FE};cAByAGEAawByAGEAdABpAC4AYQBnAHIAYQB3AGEAbABAAG0AdQAtAHMAaQBnAG0AYQAuAGMAbwBtAA==;Tue, 26 Jun 2012 07:29:18 GMT;RwBlAHQAdABpAG4AZwAgAE4AdQBsAGwAIABQAG8AaQBuAHQAZQByACAARQB4AGMAZQBwAHQAaQBvAG4AIAB3AGgAZQBuACAAdQBzAGkAbgBnACAATQBhAHAAIABSAGUAZAB1AGMAZQAgAGYAbwByACAAcgBlAHQAcgBpAGUAdgBhAGwA acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_7073291669E5764EB68B5914AC4204744E058664A1AUSP01VMBX11c_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_7073291669E5764EB68B5914AC4204744E058664A1AUSP01VMBX11c_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Dear all I created a database in HBase. First I was retrieving it using Java APIs bu= t it was taking a lot of time(43 seconds) to retrieve it. I thought of writ= ing Map Reduce code to retrieve it to make it faster. But I am getting Null= Pointer Exception in my code. Following is the excerpt from my code: TableMapReduceUtil.initTableMapperJob( tableName, // inpu= t HBase table name scanRows, // = Scan instance to control CF and attribute selection MyMapper.class, // mapp= er null, // mapp= er output key null, // mapp= er output value job); job.setOutputFormatClass(NullOutputFormat.class); // because we aren't em= itting anything from mapper boolean b =3D job.waitForCompletion(true); if (!b) { throw new IOException("error with job!"); } The error I get is as follows: Exception in thread "main" java.lang.NullPointerException at org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.initTab= leMapperJob(TableMapReduceUtil.java:100) at org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.initTab= leMapperJob(TableMapReduceUtil.java:75) Please help me Thanks and Regards Prakrati Agrawal | Developer - Big Data(I&D)| 9731648376 | www.mu-sigma.com ________________________________ This email message may contain proprietary, private and confidential inform= ation. The information transmitted is intended only for the person(s) or en= tities to which it is addressed. Any review, retransmission, dissemination = or other use of, or taking of any action in reliance upon, this information= by persons or entities other than the intended recipient is prohibited and= may be illegal. If you received this in error, please contact the sender a= nd delete the message from your system. Mu Sigma takes all reasonable steps to ensure that its electronic communica= tions are free from viruses. However, given Internet accessibility, the Com= pany cannot accept liability for any virus introduced by this e-mail or any= attachment and you are advised to use up-to-date virus checking software. --_000_7073291669E5764EB68B5914AC4204744E058664A1AUSP01VMBX11c_--