Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCDB610110 for ; Fri, 17 Apr 2015 07:26:49 +0000 (UTC) Received: (qmail 85784 invoked by uid 500); 17 Apr 2015 07:11:50 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 65970 invoked by uid 500); 17 Apr 2015 07:11:37 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 56065 invoked by uid 99); 17 Apr 2015 05:54:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 05:54:58 +0000 Date: Fri, 17 Apr 2015 05:54:58 +0000 (UTC) From: "Samir Ahmic (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-13456) Improve HFilePrettyPrinter first hbase:meta region processing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Samir Ahmic updated HBASE-13456: -------------------------------- Status: Patch Available (was: In Progress) > Improve HFilePrettyPrinter first hbase:meta region processing > -------------------------------------------------------------- > > Key: HBASE-13456 > URL: https://issues.apache.org/jira/browse/HBASE-13456 > Project: HBase > Issue Type: Improvement > Components: util > Affects Versions: 0.98.12, 2.0.0 > Environment: x86_64 GNU/Linux > Reporter: Samir Ahmic > Assignee: Samir Ahmic > Priority: Minor > Attachments: HBASE-13456-0.98-v2.patch, HBASE-13456-0.98.patch, HBASE-13456-master-v2.patch, HBASE-13456-master.patch > > > HFilePrettyPrinter have couple of small issues when -r option is used with hbase:meta region as argument: > 1. Processing files in oldWals and recovered.edits directories > {code} > $ hbase org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter -v -r hbase:meta,,1 > Number of region files found -> 3 > Found file[1] -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/info/e1d395908f8c43d2b22bb3a630728ebf > Found file[2] -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/info/e30faa185198449b9cb2eeb5589ebd1b > Found file[3] -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/oldWALs/hlog.1428309293399 > Scanning -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/info/e1d395908f8c43d2b22bb3a630728ebf > Scanning -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/info/e30faa185198449b9cb2eeb5589ebd1b > Scanning -> hdfs://P3cluster/hbase/data/hbase/meta/1588230740/oldWALs/hlog.1428309293399 > 2015-04-13 14:08:21,461 ERROR [main] hfile.HFilePrettyPrinter: Error reading hdfs://P3cluster/hbase/data/hbase/meta/1588230740/oldWALs/hlog.1428309293399 > org.apache.hadoop.hbase.io.hfile.CorruptHFileException: Problem reading HFile Trailer from file hdfs://P3cluster/hbase/data/hbase/meta/1588230740/oldWALs/hlog.1428309293399 > {code} > 2. If full region name is passed as argument we have wrong encoded region name returned: > {code} > hbase org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter -v -r hbase:meta,,1.1588230740 > region dir -> hdfs://P3cluster/hbase/data/hbase/meta/104563571 > 2015-04-13 14:21:43,012 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available > 2015-04-13 14:21:43,711 INFO [main] util.ChecksumType: Checksum using org.apache.hadoop.util.PureJavaCrc32 > 2015-04-13 14:21:43,717 INFO [main] util.ChecksumType: Checksum can use org.apache.hadoop.util.PureJavaCrc32C > 2015-04-13 14:21:43,899 ERROR [main] hfile.HFilePrettyPrinter: Error parsing command-line options > java.io.FileNotFoundException: File hdfs://P3cluster/hbase/data/hbase/meta/104563571 does not exist. > {code} > I have modified HFilePrettyPrinter.java to address this issues. Patch is coming soon. -- This message was sent by Atlassian JIRA (v6.3.4#6332)