You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by sagar naik <sn...@attributor.com> on 2011/10/26 22:09:50 UTC
CopyTable Usage/Exception
Hi,
Hbase version: cdh3-u0/0.90.1
I m trying to use the copytable
The arguments are:
copytable --peer.adr=<dest:2181:/hbase> --new.name=<table>_backup <src_table>
hbase-site.xml of the src hbase should be in the classpath
My command:
copytable --peer.adr=dest_host:2181:/hbase --new.name=TestBackup Test
I m sure that hbase-site.xml (for src table) is in the classpath, but
still, get src table not found
org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in
.META. for table: Test, row=Test,,99999999999999
at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:136)
at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:648)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:702)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:593)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:558)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:171)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145)
at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:91)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
When I took in the remote debugger, I realised that TableOutputFormat
overwrites the zookeeper info (src becomes dest).
I am sure this is well-used feature , so it must be something I missed.
Pl help me to get this working
Thanks
-Sagar
-Sagar
Re: CopyTable Usage/Exception
Posted by sagar naik <sn...@attributor.com>.
It looks like it is a solved issue in later version from the code.
TableOupputFormat uses it's own config in later versions (cdh3u1/0.90.4)
-Sagar
On Wed, Oct 26, 2011 at 1:18 PM, sagar naik <sn...@attributor.com> wrote:
> Sure, I will try
>
> Thanks for pronto response.
>
>
> -Sagar
>
> On Wed, Oct 26, 2011 at 1:14 PM, Jean-Daniel Cryans <jd...@apache.org> wrote:
>> I remember an issue with CopyTable in early versions of 0.90, can you
>> retry it with 0.90.4 or cdh3u1?
>>
>> Thx,
>>
>> J-D
>>
>> On Wed, Oct 26, 2011 at 1:09 PM, sagar naik <sn...@attributor.com> wrote:
>>> Hi,
>>>
>>> Hbase version: cdh3-u0/0.90.1
>>>
>>> I m trying to use the copytable
>>>
>>> The arguments are:
>>> copytable --peer.adr=<dest:2181:/hbase> --new.name=<table>_backup <src_table>
>>> hbase-site.xml of the src hbase should be in the classpath
>>>
>>>
>>> My command:
>>> copytable --peer.adr=dest_host:2181:/hbase --new.name=TestBackup Test
>>>
>>> I m sure that hbase-site.xml (for src table) is in the classpath, but
>>> still, get src table not found
>>> org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in
>>> .META. for table: Test, row=Test,,99999999999999
>>> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:136)
>>> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
>>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:648)
>>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:702)
>>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:593)
>>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:558)
>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:171)
>>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145)
>>> at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:91)
>>> at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
>>> at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
>>>
>>>
>>> When I took in the remote debugger, I realised that TableOutputFormat
>>> overwrites the zookeeper info (src becomes dest).
>>>
>>> I am sure this is well-used feature , so it must be something I missed.
>>>
>>> Pl help me to get this working
>>>
>>>
>>> Thanks
>>> -Sagar
>>>
>>>
>>>
>>>
>>>
>>>
>>> -Sagar
>>>
>>
>
Re: CopyTable Usage/Exception
Posted by sagar naik <sn...@attributor.com>.
Sure, I will try
Thanks for pronto response.
-Sagar
On Wed, Oct 26, 2011 at 1:14 PM, Jean-Daniel Cryans <jd...@apache.org> wrote:
> I remember an issue with CopyTable in early versions of 0.90, can you
> retry it with 0.90.4 or cdh3u1?
>
> Thx,
>
> J-D
>
> On Wed, Oct 26, 2011 at 1:09 PM, sagar naik <sn...@attributor.com> wrote:
>> Hi,
>>
>> Hbase version: cdh3-u0/0.90.1
>>
>> I m trying to use the copytable
>>
>> The arguments are:
>> copytable --peer.adr=<dest:2181:/hbase> --new.name=<table>_backup <src_table>
>> hbase-site.xml of the src hbase should be in the classpath
>>
>>
>> My command:
>> copytable --peer.adr=dest_host:2181:/hbase --new.name=TestBackup Test
>>
>> I m sure that hbase-site.xml (for src table) is in the classpath, but
>> still, get src table not found
>> org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in
>> .META. for table: Test, row=Test,,99999999999999
>> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:136)
>> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:648)
>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:702)
>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:593)
>> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:558)
>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:171)
>> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145)
>> at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:91)
>> at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
>> at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
>>
>>
>> When I took in the remote debugger, I realised that TableOutputFormat
>> overwrites the zookeeper info (src becomes dest).
>>
>> I am sure this is well-used feature , so it must be something I missed.
>>
>> Pl help me to get this working
>>
>>
>> Thanks
>> -Sagar
>>
>>
>>
>>
>>
>>
>> -Sagar
>>
>
Re: CopyTable Usage/Exception
Posted by Jean-Daniel Cryans <jd...@apache.org>.
I remember an issue with CopyTable in early versions of 0.90, can you
retry it with 0.90.4 or cdh3u1?
Thx,
J-D
On Wed, Oct 26, 2011 at 1:09 PM, sagar naik <sn...@attributor.com> wrote:
> Hi,
>
> Hbase version: cdh3-u0/0.90.1
>
> I m trying to use the copytable
>
> The arguments are:
> copytable --peer.adr=<dest:2181:/hbase> --new.name=<table>_backup <src_table>
> hbase-site.xml of the src hbase should be in the classpath
>
>
> My command:
> copytable --peer.adr=dest_host:2181:/hbase --new.name=TestBackup Test
>
> I m sure that hbase-site.xml (for src table) is in the classpath, but
> still, get src table not found
> org.apache.hadoop.hbase.TableNotFoundException: Cannot find row in
> .META. for table: Test, row=Test,,99999999999999
> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:136)
> at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:95)
> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.prefetchRegionCache(HConnectionManager.java:648)
> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:702)
> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:593)
> at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:558)
> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:171)
> at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:145)
> at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:91)
> at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:62)
> at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
>
>
> When I took in the remote debugger, I realised that TableOutputFormat
> overwrites the zookeeper info (src becomes dest).
>
> I am sure this is well-used feature , so it must be something I missed.
>
> Pl help me to get this working
>
>
> Thanks
> -Sagar
>
>
>
>
>
>
> -Sagar
>