FAQ
Hi,
We use hbase 0.20.6
We're facing weird state for a particular table:

2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
create packageindex
org.apache.hadoop.hbase.TableExistsException:
org.apache.hadoop.hbase.TableExistsException: packageindex
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
...
2010-11-19 09:25:08,352 Thread-20 INFO
[HBasePackageIndexTableMapperNew] Creating table packageindex - Done
2010-11-19 09:25:08,374 Thread-20 INFO [CodecPool] Got brand-new decompressor
2010-11-19 09:25:08,396 Thread-20 INFO
[HBasePackageIndexTableMapperNew] OnClose called
2010-11-19 09:25:08,397 Thread-20 WARN [LocalJobRunner] job_local_0001
org.apache.hadoop.hbase.TableNotFoundException: packageindex
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
at org.apache.hadoop.hbase.client.HTable.(HTable.java:112)

Can someone suggest what I should do so that I can create this table again ?

Thanks

Search Discussions

  • Jean-Daniel Cryans at Nov 19, 2010 at 6:01 pm
    Seems like a classic .META. issue from 0.20, I would suggest that you
    look at the master's state (regions in transition, etc), and that you
    scan .META. for that table.

    Also, looking at the code that lists the table, I see one case where a
    row would be in .META. but not listed:

    byte[] value = result.getValue(CATALOG_FAMILY,
    REGIONINFO_QUALIFIER);
    HRegionInfo info = null;
    if (value != null) {
    info = Writables.getHRegionInfo(value);
    }
    // Only examine the rows where the startKey is zero length
    if (info != null && info.getStartKey().length == 0) {
    uniqueTables.add(info.getTableDesc());
    }


    Could it be that the first region isn't in .META.?

    J-D
    On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote:
    Hi,
    We use hbase 0.20.6
    We're facing weird state for a particular table:

    2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
    create packageindex
    org.apache.hadoop.hbase.TableExistsException:
    org.apache.hadoop.hbase.TableExistsException: packageindex
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
    at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
    at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
    at org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
    at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
    at org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
    ...
    2010-11-19 09:25:08,352 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] Creating table packageindex - Done
    2010-11-19 09:25:08,374 Thread-20 INFO  [CodecPool] Got brand-new decompressor
    2010-11-19 09:25:08,396 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] OnClose called
    2010-11-19 09:25:08,397 Thread-20 WARN  [LocalJobRunner] job_local_0001
    org.apache.hadoop.hbase.TableNotFoundException: packageindex
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
    at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)

    Can someone suggest what I should do so that I can create this table again ?

    Thanks
  • Ted Yu at Nov 19, 2010 at 6:08 pm
    How do I delete the other regions for this table in .META. ?

    Thanks
    On Fri, Nov 19, 2010 at 10:01 AM, Jean-Daniel Cryans wrote:

    Seems like a classic .META. issue from 0.20, I would suggest that you
    look at the master's state (regions in transition, etc), and that you
    scan .META. for that table.

    Also, looking at the code that lists the table, I see one case where a
    row would be in .META. but not listed:

    byte[] value = result.getValue(CATALOG_FAMILY,
    REGIONINFO_QUALIFIER);
    HRegionInfo info = null;
    if (value != null) {
    info = Writables.getHRegionInfo(value);
    }
    // Only examine the rows where the startKey is zero length
    if (info != null && info.getStartKey().length == 0) {
    uniqueTables.add(info.getTableDesc());
    }


    Could it be that the first region isn't in .META.?

    J-D
    On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote:
    Hi,
    We use hbase 0.20.6
    We're facing weird state for a particular table:

    2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
    create packageindex
    org.apache.hadoop.hbase.TableExistsException:
    org.apache.hadoop.hbase.TableExistsException: packageindex
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
    at
    org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
    org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
    ...
    2010-11-19 09:25:08,352 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] Creating table packageindex - Done
    2010-11-19 09:25:08,374 Thread-20 INFO [CodecPool] Got brand-new
    decompressor
    2010-11-19 09:25:08,396 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] OnClose called
    2010-11-19 09:25:08,397 Thread-20 WARN [LocalJobRunner] job_local_0001
    org.apache.hadoop.hbase.TableNotFoundException: packageindex
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)

    Can someone suggest what I should do so that I can create this table again ?
    Thanks
  • Jean-Daniel Cryans at Nov 19, 2010 at 6:10 pm
    Do you have them or not? If so, a normal deleteall from the shell does the work.

    J-D
    On Fri, Nov 19, 2010 at 10:08 AM, Ted Yu wrote:
    How do I delete the other regions for this table in .META. ?

    Thanks
    On Fri, Nov 19, 2010 at 10:01 AM, Jean-Daniel Cryans wrote:

    Seems like a classic .META. issue from 0.20, I would suggest that you
    look at the master's state (regions in transition, etc), and that you
    scan .META. for that table.

    Also, looking at the code that lists the table, I see one case where a
    row would be in .META. but not listed:

    byte[] value = result.getValue(CATALOG_FAMILY,
    REGIONINFO_QUALIFIER);
    HRegionInfo info = null;
    if (value != null) {
    info = Writables.getHRegionInfo(value);
    }
    // Only examine the rows where the startKey is zero length
    if (info != null && info.getStartKey().length == 0) {
    uniqueTables.add(info.getTableDesc());
    }


    Could it be that the first region isn't in .META.?

    J-D
    On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote:
    Hi,
    We use hbase 0.20.6
    We're facing weird state for a particular table:

    2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
    create packageindex
    org.apache.hadoop.hbase.TableExistsException:
    org.apache.hadoop.hbase.TableExistsException: packageindex
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
    at
    org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
    org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
    ...
    2010-11-19 09:25:08,352 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] Creating table packageindex - Done
    2010-11-19 09:25:08,374 Thread-20 INFO  [CodecPool] Got brand-new
    decompressor
    2010-11-19 09:25:08,396 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] OnClose called
    2010-11-19 09:25:08,397 Thread-20 WARN  [LocalJobRunner] job_local_0001
    org.apache.hadoop.hbase.TableNotFoundException: packageindex
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)

    Can someone suggest what I should do so that I can create this table again ?
    Thanks
  • Ted Yu at Nov 19, 2010 at 6:44 pm
    Here is a summary of what I did:
    echo "scan '.META.', {COLUMNS => 'info:regioninfo'}" | $HBASE_HOME/bin/hbase
    shell > result
    then find the row for packageindex table in result
    then:
    hbase(main):001:0> deleteall '.META.',
    'packageindex,E70888DD48276DFAD4D26FEB08DC7045,1290163034864'

    Now I can create the table again.
    On Fri, Nov 19, 2010 at 10:01 AM, Jean-Daniel Cryans wrote:

    Seems like a classic .META. issue from 0.20, I would suggest that you
    look at the master's state (regions in transition, etc), and that you
    scan .META. for that table.

    Also, looking at the code that lists the table, I see one case where a
    row would be in .META. but not listed:

    byte[] value = result.getValue(CATALOG_FAMILY,
    REGIONINFO_QUALIFIER);
    HRegionInfo info = null;
    if (value != null) {
    info = Writables.getHRegionInfo(value);
    }
    // Only examine the rows where the startKey is zero length
    if (info != null && info.getStartKey().length == 0) {
    uniqueTables.add(info.getTableDesc());
    }


    Could it be that the first region isn't in .META.?

    J-D
    On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote:
    Hi,
    We use hbase 0.20.6
    We're facing weird state for a particular table:

    2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
    create packageindex
    org.apache.hadoop.hbase.TableExistsException:
    org.apache.hadoop.hbase.TableExistsException: packageindex
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
    at
    org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
    org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
    ...
    2010-11-19 09:25:08,352 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] Creating table packageindex - Done
    2010-11-19 09:25:08,374 Thread-20 INFO [CodecPool] Got brand-new
    decompressor
    2010-11-19 09:25:08,396 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] OnClose called
    2010-11-19 09:25:08,397 Thread-20 WARN [LocalJobRunner] job_local_0001
    org.apache.hadoop.hbase.TableNotFoundException: packageindex
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)

    Can someone suggest what I should do so that I can create this table again ?
    Thanks
  • Ted Yu at Nov 19, 2010 at 7:37 pm
    You can find more detail in https://issues.apache.org/jira/browse/HBASE-3251
    On Fri, Nov 19, 2010 at 10:44 AM, Ted Yu wrote:

    Here is a summary of what I did:
    echo "scan '.META.', {COLUMNS => 'info:regioninfo'}" |
    $HBASE_HOME/bin/hbase shell > result
    then find the row for packageindex table in result
    then:
    hbase(main):001:0> deleteall '.META.',
    'packageindex,E70888DD48276DFAD4D26FEB08DC7045,1290163034864'

    Now I can create the table again.

    On Fri, Nov 19, 2010 at 10:01 AM, Jean-Daniel Cryans wrote:

    Seems like a classic .META. issue from 0.20, I would suggest that you
    look at the master's state (regions in transition, etc), and that you
    scan .META. for that table.

    Also, looking at the code that lists the table, I see one case where a
    row would be in .META. but not listed:

    byte[] value = result.getValue(CATALOG_FAMILY,
    REGIONINFO_QUALIFIER);
    HRegionInfo info = null;
    if (value != null) {
    info = Writables.getHRegionInfo(value);
    }
    // Only examine the rows where the startKey is zero length
    if (info != null && info.getStartKey().length == 0) {
    uniqueTables.add(info.getTableDesc());
    }


    Could it be that the first region isn't in .META.?

    J-D
    On Fri, Nov 19, 2010 at 9:56 AM, Ted Yu wrote:
    Hi,
    We use hbase 0.20.6
    We're facing weird state for a particular table:

    2010-11-19 09:25:08,350 Thread-20 ERROR [StripedHBaseTable] Could not
    create packageindex
    org.apache.hadoop.hbase.TableExistsException:
    org.apache.hadoop.hbase.TableExistsException: packageindex
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:799)
    at
    org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:763)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
    org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
    at
    org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:998)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
    org.apache.hadoop.hbase.RemoteExceptionHandler.decodeRemoteException(RemoteExceptionHandler.java:94)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTableAsync(HBaseAdmin.java:283)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:240)
    at
    org.apache.hadoop.hbase.client.HBaseAdmin.createTable(HBaseAdmin.java:206)
    ...
    2010-11-19 09:25:08,352 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] Creating table packageindex - Done
    2010-11-19 09:25:08,374 Thread-20 INFO [CodecPool] Got brand-new
    decompressor
    2010-11-19 09:25:08,396 Thread-20 INFO
    [HBasePackageIndexTableMapperNew] OnClose called
    2010-11-19 09:25:08,397 Thread-20 WARN [LocalJobRunner] job_local_0001
    org.apache.hadoop.hbase.TableNotFoundException: packageindex
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:698)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
    at
    org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)

    Can someone suggest what I should do so that I can create this table again ?
    Thanks

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedNov 19, '10 at 5:56p
activeNov 19, '10 at 7:37p
posts6
users2
websitehbase.apache.org

2 users in discussion

Ted Yu: 4 posts Jean-Daniel Cryans: 2 posts

People

Translate

site design / logo © 2022 Grokbase