Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 26316 invoked from network); 17 Jun 2010 13:13:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jun 2010 13:13:18 -0000 Received: (qmail 13379 invoked by uid 500); 17 Jun 2010 02:06:37 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 13313 invoked by uid 500); 17 Jun 2010 02:06:36 -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 13303 invoked by uid 99); 17 Jun 2010 02:06:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 02:06:36 +0000 X-ASF-Spam-Status: No, hits=-1.9 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_MED,RCVD_IN_RP_SAFE X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of agsharma@ebay.com) Received: from [216.33.244.6] (HELO rhv-mipot-001.corp.ebay.com) (216.33.244.6) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 02:06:29 +0000 DomainKey-Signature: s=corp; d=ebay.com; c=nofws; q=dns; h=X-EBay-Corp:X-IronPort-AV:Received:Received:From:To:Date: Subject:Thread-Topic:Thread-Index:Message-ID: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:x-cr-puzzleid:x-cr-hashedpuzzle: acceptlanguage:x-ems-proccessed:x-ems-stamp:Content-Type: MIME-Version:X-CFilter; b=vbrx5jeEh0Ilh58s+scQx6NEG8NZAE81YNbD/36KQStnkv+laYnyGied fBLy35MgALL8cRFNKQVSyXRdFIpcU82pivtDcOc/DYfiZ6+gaPXFQ1LcR hWizjr3xRq3wkYa; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ebay.com; i=agsharma@ebay.com; q=dns/txt; s=corp; t=1276740389; x=1308276389; h=from:to:date:subject:message-id:mime-version; z=From:=20"Sharma,=20Avani"=20|To:=20"u ser@hbase.apache.org"=20|Date:=20W ed,=2016=20Jun=202010=2019:05:56=20-0700|Subject:=20MapRe duce=20job=20runs=20fine,=20but=20nothing=20is=20written =20to=20HTable|Message-ID:=20|MIME-Version: =201.0; bh=WfH0tcLYEgmlnOvVIJASrvfOVdyLLFj27S4KtEQLuSQ=; b=j83zjbtCg2VGnne9TJ8XTaBmcH9dTyKj8SUpBI0E46y3k5cBYtGL4wUi yuy2AWRs0Yd1/2InXBAOzFO82s0oMGegsCjzcI2+kZL3py/HmLRr3Sb+n tv0bScnrOFmcTDj; X-EBay-Corp: Yes X-IronPort-AV: E=Sophos;i="4.53,428,1272870000"; d="scan'208,217";a="65927444" Received: from rhv-vtenf-001.corp.ebay.com (HELO RHV-MEXHT-003.corp.ebay.com) ([10.112.113.52]) by rhv-mipot-001.corp.ebay.com with ESMTP; 16 Jun 2010 19:06:06 -0700 Received: from RHV-MEXMS-002.corp.ebay.com ([10.245.17.114]) by RHV-MEXHT-003.corp.ebay.com ([10.245.24.102]) with mapi; Wed, 16 Jun 2010 19:05:56 -0700 From: "Sharma, Avani" To: "user@hbase.apache.org" Date: Wed, 16 Jun 2010 19:05:56 -0700 Subject: MapReduce job runs fine, but nothing is written to HTable Thread-Topic: MapReduce job runs fine, but nothing is written to HTable Thread-Index: AcsNwZ+kMVIhgNgbQlOkukNBDtIxgw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {6CD44911-6F40-4D5A-961F-5C629B67481A} x-cr-hashedpuzzle: hHo= ASN6 AvhC A3Un BlVf CRhw CTyw Ce4+ C3Xs D+FX D/oU EOp/ E23w HkzE JmYG KtqZ;1;dQBzAGUAcgBAAGgAYgBhAHMAZQAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{6CD44911-6F40-4D5A-961F-5C629B67481A};YQBnAHMAaABhAHIAbQBhAEAAZQBiAGEAeQAuAGMAbwBtAA==;Thu, 17 Jun 2010 02:05:56 GMT;TQBhAHAAUgBlAGQAdQBjAGUAIABqAG8AYgAgAHIAdQBuAHMAIABmAGkAbgBlACwAIABiAHUAdAAgAG4AbwB0AGgAaQBuAGcAIABpAHMAIAB3AHIAaQB0AHQAZQBuACAAdABvACAASABUAGEAYgBsAGUA acceptlanguage: en-US x-ems-proccessed: 10SqDH0iR7ekR7SRpKqm5A== x-ems-stamp: wiqGilEVQjooQNXz63h8pQ== Content-Type: multipart/alternative; boundary="_000_DE357E04199C8A4782DA2C8130FD64CAFF63FCBARHVMEXMS002corp_" MIME-Version: 1.0 X-CFilter: Scanned --_000_DE357E04199C8A4782DA2C8130FD64CAFF63FCBARHVMEXMS002corp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am running a job to write some data from a HDFS file to and Hbase table u= sing the new API. The job runs fine without any errors, but I do not see the rows added to th= e hbase table. This is what my code looks like - I am running this as hadoop jar private HTable table; protected void map(ImmutableBytesWritable key, Text value,= Context context) throws IOException, InterruptedException { table =3D new HTable( new HBaseConfiguration(), = "blogposts"); // Split input line on tab character String [] splits =3D value.toString().split("\t= "); String rowID =3D splits[0]; String cellValue =3D splits[1]; Put p =3D new Put(Bytes.toBytes(rowID)); p.add(Bytes.toBytes("post"), Bytes.toBytes("title")= , Bytes.toBytes(splits[1])); table.put(p); table.flushCommits(); } /* This commented code when run seprataely in a main program runs fine = and does update to the table HTable table =3D new HTable(new HBaseConfiguration(), "blogposts"); Put p =3D new Put(Bytes.toBytes("post3")); p.add(Bytes.toBytes("post"), Bytes.toBytes("title"), Bytes.toBytes(= "abx")); p.add(Bytes.toBytes("post"), Bytes.toBytes("author"), Bytes.toBytes= ("hadings")); p.add(Bytes.toBytes("image"), Bytes.toBytes("body"), Bytes.toBytes(= "123.jpg")); p.add(Bytes.toBytes("image"), Bytes.toBytes("header"), Bytes.toByte= s("7657.jpg")); table.put(p); */ Run log 10/06/16 19:00:35 WARN mapred.JobClient: Use GenericOptionsParser for parsi= ng the arguments. Applications should implement Tool for the same. 10/06/16 19:00:35 INFO input.FileInputFormat: Total input paths to process = : 1 10/06/16 19:00:36 INFO mapred.JobClient: Running job: job_201003301510_0157 10/06/16 19:00:37 INFO mapred.JobClient: map 0% reduce 0% 10/06/16 19:00:45 INFO mapred.JobClient: map 100% reduce 0% 10/06/16 19:00:47 INFO mapred.JobClient: Job complete: job_201003301510_015= 7 10/06/16 19:00:47 INFO mapred.JobClient: Counters: 5 10/06/16 19:00:47 INFO mapred.JobClient: Job Counters 10/06/16 19:00:47 INFO mapred.JobClient: Rack-local map tasks=3D1 10/06/16 19:00:47 INFO mapred.JobClient: Launched map tasks=3D1 10/06/16 19:00:47 INFO mapred.JobClient: FileSystemCounters 10/06/16 19:00:47 INFO mapred.JobClient: HDFS_BYTES_READ=3D31 10/06/16 19:00:47 INFO mapred.JobClient: Map-Reduce Framework 10/06/16 19:00:47 INFO mapred.JobClient: Map input records=3D2 10/06/16 19:00:47 INFO mapred.JobClient: Spilled Records=3D0 Thanks, Avani --_000_DE357E04199C8A4782DA2C8130FD64CAFF63FCBARHVMEXMS002corp_--