You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Vikas Kanth <ka...@yahoo.co.in.INVALID> on 2018/02/21 20:44:34 UTC
How to recover a table
I can see the regions of my table at s3://mybucket/hbasedir/data/db1/mytable/77b98d085239ed8668596ea659a7ad7dHowever, Hbase fails to identify the table:
hbase(main):002:0> describe 'mytable'ERROR: Unknown table mytable!
Commands like scan and count are failing as well.I have tried running the repair and fix commands (-fixMeta, -fixAssignment and others) without any success. These commands show 0 inconsistency.Other tables look healthy.
Please let me know how to recover the table. I can't afford to drop the table
Re: How to recover a table
Posted by Ted Yu <yu...@gmail.com>.
It seems there were 3 files on s3 (they're all on the same line).
If possible, can you pastebin parts of master log which were related to the
table ?
That may give us more clue.
On Thu, Feb 22, 2018 at 10:01 AM, Vikas Kanth <
kanth_vikas@yahoo.co.in.invalid> wrote:
> Hi Ted,
> Thanks for replying.I can see the descriptors under the table:
> s3://mybucket/hbasedir/data/db1/mytable/.tabledesc/.
> tableinfo.0000000001s3://mybucket/hbasedir/data/db1/
> mytable/.tabledescs3://mybucket/hbasedir/data/db1/mytable/.tmp
>
> This is what I see in the HBM logs:
> 2018-02-21 09:02:29,918 WARN [xxxxxxxxx,16000,1519199162102_ChoreService_3]
> master.CatalogJanitor: CatalogJanitor disabled! Not running scan.
> $ hbase versionHBase 1.3.1
> Thanks
Re: How to recover a table
Posted by Vikas Kanth <ka...@yahoo.co.in.INVALID>.
Hi Ted,
Thanks for replying.I can see the descriptors under the table:
s3://mybucket/hbasedir/data/db1/mytable/.tabledesc/.tableinfo.0000000001s3://mybucket/hbasedir/data/db1/mytable/.tabledescs3://mybucket/hbasedir/data/db1/mytable/.tmp
This is what I see in the HBM logs:
2018-02-21 09:02:29,918 WARNÂ [xxxxxxxxx,16000,1519199162102_ChoreService_3] master.CatalogJanitor: CatalogJanitor disabled! Not running scan.
$ hbase versionHBase 1.3.1
Thanks
Re: How to recover a table
Posted by Ted Yu <yu...@gmail.com>.
For a user table, you should see the following in the table dir:
drwxr-xr-x - hbase hdfs 0 2018-02-16 22:20
/apps/hbase/data/data/default/t1/.tabledesc
drwxr-xr-x - hbase hdfs 0 2018-02-16 22:20
/apps/hbase/data/data/default/t1/.tmp
Is the table descriptor under mytable ?
At the time of 'Unknown table mytable!' error, what do you see in master
log ?
Which hbase release are you using ?
Cheers
On Wed, Feb 21, 2018 at 12:44 PM, Vikas Kanth <
kanth_vikas@yahoo.co.in.invalid> wrote:
> I can see the regions of my table at s3://mybucket/hbasedir/data/
> db1/mytable/77b98d085239ed8668596ea659a7ad7dHowever, Hbase fails to
> identify the table:
>
> hbase(main):002:0> describe 'mytable'ERROR: Unknown table mytable!
> Commands like scan and count are failing as well.I have tried running the
> repair and fix commands (-fixMeta, -fixAssignment and others) without any
> success. These commands show 0 inconsistency.Other tables look healthy.
> Please let me know how to recover the table. I can't afford to drop the
> table