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 D45F19BC7 for ; Tue, 29 May 2012 21:22:42 +0000 (UTC) Received: (qmail 38060 invoked by uid 500); 29 May 2012 21:22:41 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 38009 invoked by uid 500); 29 May 2012 21:22:41 -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 38001 invoked by uid 99); 29 May 2012 21:22:40 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 21:22:40 +0000 Received: from localhost (HELO mail-yw0-f41.google.com) (127.0.0.1) (smtp-auth username apurtell, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 21:22:40 +0000 Received: by yhr47 with SMTP id 47so3819424yhr.14 for ; Tue, 29 May 2012 14:22:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.114.201 with SMTP id c49mr8203333yhh.110.1338326559650; Tue, 29 May 2012 14:22:39 -0700 (PDT) Received: by 10.64.24.212 with HTTP; Tue, 29 May 2012 14:22:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 May 2012 14:22:39 -0700 Message-ID: Subject: Re: Data import from Distributed Hbase cluster to Pseudo Distributed Hbase cluster From: Andrew Purtell To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable As this is a quite old version of HBase and a CDH version, you should ask on the CDH lists. - Andy On Tue, May 29, 2012 at 12:13 PM, arun sirimalla wrot= e: > Hi Amandeep, > > Thanks for your reply. I tried the copytable tool to copy the table from > Distributed Hbase cluster to Pseudo Distributed Hbase Cluster using the > below command > > hadoop jar hbase-0.90.3-cdh3u1.jar copytable > --peer.adr=3Dsand001.rssand001:2181:/storage/hbase test > > It initializes the job and fails with following error > > 12/05/29 19:05:15 INFO mapred.JobClient: Running job: job_201204122048_00= 04 > 12/05/29 19:05:16 INFO mapred.JobClient: =A0map 0% reduce 0% > 12/05/29 19:05:26 INFO mapred.JobClient: Task Id : > attempt_201204122048_0004_m_000000_0, Status : FAILED > java.lang.NullPointerException > =A0 =A0at > org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.wri= te(TableOutputFormat.java:127) > =A0 =A0at > org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.wri= te(TableOutputFormat.java:82) > =A0 =A0at > org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.j= ava:531) > =A0 =A0at > org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputC= ontext.java:80) > =A0 =A0at org.apache.hadoop.hbase.mapreduce.Import$Importer.map(Import.ja= va:60) > =A0 =A0at org.apache.hadoop.hbase.mapreduce.Import$Importer.map(Import.ja= va:45) > =A0 =A0at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144) > =A0 =A0at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647) > =A0 =A0at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323) > =A0 =A0at org.apache.hadoop.mapred.Child$4.run(Child.java:270) > =A0 =A0at java.security.AccessController.doPrivileged(Native Method) > =A0 =A0at javax.security.auth.Subject.doAs(Subject.java:396) > =A0 =A0at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation= .java:1127) > =A0 =A0at org.apache.hadoop.mapred.Child.main(Child.java:264) > > > On Tue, May 29, 2012 at 11:45 AM, Amandeep Khurana wro= te: > >> Assuming that your data fits into the pseudo dist cluster and both >> clusters can talk to each other, the CopyTable job that comes bundled wi= th >> HBase should work. >> >> -ak >> >> >> On Tuesday, May 29, 2012 at 11:42 AM, arun sirimalla wrote: >> >> > Hi, >> > >> > I want to copy a table from Distributed Hbase cluster to Pseudo >> > Distributed Hbase Cluster. Here the Pseudo Distributed Hbase cluster u= ses >> > Linux Filesystem as storage. >> > How can i import data from Distributed Hbase cluster to Pseudo >> Distributed >> > Hbase Cluster. >> > >> > Thanks >> > Arun >> > Cloudwick Technologies >> > >> > >> >> >> --=20 Best regards, =A0 =A0- Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)