You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2019/07/11 23:59:00 UTC

[jira] [Commented] (HBASE-22680) [HBCK2] OfflineMetaRepair for hbase2/hbck2

    [ https://issues.apache.org/jira/browse/HBASE-22680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883422#comment-16883422 ] 

stack commented on HBASE-22680:
-------------------------------

Put up a PR against hbase-operator-tools (See link above).

{code}
This commit checks-in hbck1 code with modifications under
a new package. Changes included here allow rebuild of meta
from filesystem meta data so the rebuilt hbase:meta works
for hbase2. This facility is exposed via the OfflineMetaRepair
tool with rebuild receipe outlined in the README documentation.
More of hbck1 to be exposed (or removed) in future commits to
address list of wants in parent issue HBASE-21745.

M README.md
Updated usage. Edit of aspects. Added section on end on how
to rebuild meta offline.

M pom.xml
Use hbase testing utility code instead of repro in
hbck as hbck1 used to do.

M hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java
Updated the usage.

A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsck.java
A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsckRepair.java
Copied from hbck1 and updated to work against hbase2.
Most goes unused. Subsequent commits will amend/expose/purge
this class. For now the rebuild meta function is all that is
used. Some new code added to make it work with hbase2.
Some code removed and hbasetestingutility equivalents used
instead.

A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HFileCorruptionChecker.java
A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/ReplicationChecker.java
A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/TableIntegrityErrorHandler.java
A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/TableIntegrityErrorHandlerImpl.java
Unmodified except for repackaging.

A hbase-hbck2/src/main/java/org/apache/hbase/hbck1/OfflineMetaRepair.java
Tool that exposes meta fixup. Some cleanup from original.
{code}

> [HBCK2] OfflineMetaRepair for hbase2/hbck2
> ------------------------------------------
>
>                 Key: HBASE-22680
>                 URL: https://issues.apache.org/jira/browse/HBASE-22680
>             Project: HBase
>          Issue Type: Sub-task
>          Components: hbck2
>    Affects Versions: hbase-operator-tools-1.0.0
>            Reporter: stack
>            Assignee: stack
>            Priority: Major
>             Fix For: hbase-operator-tools-1.0.0
>
>
> Add tooling and doc that allows recovery of meta after catastrophic loss of meta table. Like the OfflineMetaRepair tool of hbck1. To address request for a tool that can 'rebuild meta from region metadata in the filesystem' as noted in the parent description.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)