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