You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "wangyongqiang0617@163.com" <wa...@163.com> on 2015/10/16 19:11:40 UTC

add a task in master to check if tableInfo is missinig

if we delete the tableInfo file by mistake, then if hbase is restated, the regions of this table can not be opend successfully, 
so, can we add a task in master to check its cache and hdfs to check if a tableInfo is missing, if missing, we can write a new one using master's cache


wangyongqiang0617@163.com

Re: add a task in master to check if tableInfo is missinig

Posted by Ted Yu <yu...@gmail.com>.
I assume you're aware of the trash feature of hdfs

See:
https://issues.apache.org/jira/browse/HDFS-2740

FYI 

> On Oct 16, 2015, at 10:31 AM, "wangyongqiang0617@163.com" <wa...@163.com> wrote:
> 
> not a sucure hbase
> we delete the tableInfo by mistabke is a case
> the other is: if we can not drop a table with drop in hbase shell, so we can drop table by ourselves, delete hdfs, delete meta, and so on,
> so, after we delete hdfs, we need to restart master to refresh the cache.
> 
> so, i think we can add a task to synchronize master' cache and hdfs
> 
> 
> 
> wangyongqiang0617@163.com
> 
> From: Ted Yu
> Date: 2015-10-17 01:17
> To: dev@hbase.apache.org
> Subject: Re: add a task in master to check if tableInfo is missinig
> Are you running hbase on secure cluster ?
> 
> As J-M said, hbck can come to the rescue if you encounter such a case.
> 
> Cheers
> 
> On Fri, Oct 16, 2015 at 10:11 AM, wangyongqiang0617@163.com <
> wangyongqiang0617@163.com> wrote:
> 
>> 
>> if we delete the tableInfo file by mistake, then if hbase is restated, the
>> regions of this table can not be opend successfully,
>> so, can we add a task in master to check its cache and hdfs to check if a
>> tableInfo is missing, if missing, we can write a new one using master's
>> cache
>> 
>> 
>> wangyongqiang0617@163.com
>> 

Re: Re: add a task in master to check if tableInfo is missinig

Posted by "wangyongqiang0617@163.com" <wa...@163.com>.
not a sucure hbase
we delete the tableInfo by mistabke is a case
the other is: if we can not drop a table with drop in hbase shell, so we can drop table by ourselves, delete hdfs, delete meta, and so on,
so, after we delete hdfs, we need to restart master to refresh the cache.

so, i think we can add a task to synchronize master' cache and hdfs



wangyongqiang0617@163.com
 
From: Ted Yu
Date: 2015-10-17 01:17
To: dev@hbase.apache.org
Subject: Re: add a task in master to check if tableInfo is missinig
Are you running hbase on secure cluster ?
 
As J-M said, hbck can come to the rescue if you encounter such a case.
 
Cheers
 
On Fri, Oct 16, 2015 at 10:11 AM, wangyongqiang0617@163.com <
wangyongqiang0617@163.com> wrote:
 
>
> if we delete the tableInfo file by mistake, then if hbase is restated, the
> regions of this table can not be opend successfully,
> so, can we add a task in master to check its cache and hdfs to check if a
> tableInfo is missing, if missing, we can write a new one using master's
> cache
>
>
> wangyongqiang0617@163.com
>

Re: add a task in master to check if tableInfo is missinig

Posted by Ted Yu <yu...@gmail.com>.
Are you running hbase on secure cluster ?

As J-M said, hbck can come to the rescue if you encounter such a case.

Cheers

On Fri, Oct 16, 2015 at 10:11 AM, wangyongqiang0617@163.com <
wangyongqiang0617@163.com> wrote:

>
> if we delete the tableInfo file by mistake, then if hbase is restated, the
> regions of this table can not be opend successfully,
> so, can we add a task in master to check its cache and hdfs to check if a
> tableInfo is missing, if missing, we can write a new one using master's
> cache
>
>
> wangyongqiang0617@163.com
>

Re: add a task in master to check if tableInfo is missinig

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
But what if someone create a directory by mistake? We will think it's a
region and create a tableinfo by default?  Should we not instead prompt a
warning or something like that? HBCK can recreate those files, right?

2015-10-16 13:11 GMT-04:00 wangyongqiang0617@163.com <
wangyongqiang0617@163.com>:

>
> if we delete the tableInfo file by mistake, then if hbase is restated, the
> regions of this table can not be opend successfully,
> so, can we add a task in master to check its cache and hdfs to check if a
> tableInfo is missing, if missing, we can write a new one using master's
> cache
>
>
> wangyongqiang0617@163.com
>