This has been discussed in Hbase slack channel also. Posting the
discussion from there for completion.

Huaxiang  11:03 PM
@Nand You can use --fixMeta option to fix region holes.

saintstack  11:05 PM
@Nand versions?
Upgrade to get better fixing
2.1.4 has little

Nand  11:05 PM
hbck2 version: 1.0.0
hbase version: 2.1.4
However upgrading to latest version is not feasible in near future for
my org. Is there a risk if I just enable fixing region holes via
filesystem --fix option?

elserj  11:12 PM
I didn’t think there was a lot of good repair options in 2.1.4 at all
(hence, stack’s suggestion to upgrade)
11:13
hbck2 and hbase being separate repos means that they both iterate
faster. You can’t just pick a new hbck2 and expect all functions to
work against old hbase.
some folks have been doing work to make this more clear, via hbase
reporting what “features’ it supports, but again older versions won’t
show ya this.
11:14
there’s an HbckService inside HBase which will show you what “server
side” hooks your hbase version actually has.



On Fri, May 29, 2020 at 1:30 AM Wellington Chevreuil
<[email protected]> wrote:
>
> The risks are high, there is currently no plans to add those to hbck2. HBCK2 
> does provide many methods that can be used in conjunction to fix region 
> holes. This is inline with the current philosophy for hbck2, where repairs 
> should be iteratively by operators.
>
> Depending on the nature of your region holes, you may be able to get it 
> sorted by running below hbck2 methods:
> - reportMissingRegionsInMeta
> - assigns/unassigns
> - addMissingRegionsInMeta
> - filesystem
>
> You may also benefit from hbase shell merge command, to fix your holes as 
> well, but again, it all depends on what's causing such holes.
>
> Em qui., 28 de mai. de 2020 às 18:34, Nand kishor Bansal <[email protected]> 
> escreveu:
>>
>> H
>>
>> I'm trying to use hbck2 (
>> https://downloads.apache.org/hbase/hbase-operator-tools-1.0.0/) but can't
>> find a way to fix the region holes.
>> Most appropriate option to fix the region holes appears to be "filesystem
>> --fix"
>> However it does not fix the region holes.
>> Looking at the source it appears that fixing region holes is not enabled
>> out of the box
>>
>>
>> https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/src/main/java/org/apache/hbase/FileSystemFsck.java:
>>     /*
>>       The below are too radical for hbck2. They are filesystem changes only.
>>       Need to connect them to hbase:meta and master; master should repair
>>       holes and overlaps and adopt regions.
>> hbaseFsck.setFixHdfsOrphans(fix);
>>       hbaseFsck.setFixHdfsHoles(fix);
>>       hbaseFsck.setFixHdfsOverlaps(fix);
>>       hbaseFsck.setFixTableOrphans(fix);
>>       */
>>
>>
>> Any reason why these are not enabled. What would be risk of enabling
>> these fixes.
>> HBase version 2.1.4 (http://archive.apache.org/dist/hbase/2.1.4/)
>>
>> Thanks,
>>
>> Nand

Reply via email to