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 BEA09E8AB for ; Tue, 5 Feb 2013 23:51:14 +0000 (UTC) Received: (qmail 60448 invoked by uid 500); 5 Feb 2013 23:51:14 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 60411 invoked by uid 500); 5 Feb 2013 23:51:14 -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 60364 invoked by uid 99); 5 Feb 2013 23:51:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 23:51:14 +0000 Date: Tue, 5 Feb 2013 23:51:14 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-7765) A tool to replay HLog entries in case a log file is missed while log splitting 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-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-7765. -------------------------- Resolution: Won't Fix Closing lads because WALPlayer has a main already... Its a Tool. Has some nice args: {code} 45 private void usage(final String errorMsg) { 44 if (errorMsg != null && errorMsg.length() > 0) { 43 System.err.println("ERROR: " + errorMsg); 42 } 41 System.err.println("Usage: " + NAME + " [options] []"); 40 System.err.println("Read all WAL entries for ."); 39 System.err.println("If no tables (\"\") are specific, all tables are imported."); 38 System.err.println("(Careful, even -ROOT- and .META. entries will be imported in that case.)"); 37 System.err.println("Otherwise is a comma separated list of tables.\n"); 36 System.err.println("The WAL entries can be mapped to new set of tables via ."); 35 System.err.println(" is a command separated list of targettables."); 34 System.err.println("If specified, each table in must have a mapping.\n"); 33 System.err.println("By default " + NAME + " will load data directly into HBase."); 32 System.err.println("To generate HFiles for a bulk data load instead, pass the option:"); 31 System.err.println(" -D" + BULK_OUTPUT_CONF_KEY + "=/path/for/output"); 30 System.err.println(" (Only one table can be specified, and no mapping is allowed!)"); 29 System.err.println("Other options: (specify time range to WAL edit to consider)"); 28 System.err.println(" -D" + HLogInputFormat.START_TIME_KEY + "=[date|ms]"); 27 System.err.println(" -D" + HLogInputFormat.END_TIME_KEY + "=[date|ms]"); 26 System.err.println("For performance also consider the following options:\n" 25 + " -Dmapred.map.tasks.speculative.execution=false\n" 24 + " -Dmapred.reduce.tasks.speculative.execution=false"); 23 } {code} It even has a bit of doc going on: http://hbase.apache.org/book.html#walplayer > A tool to replay HLog entries in case a log file is missed while log splitting > ------------------------------------------------------------------------------ > > Key: HBASE-7765 > URL: https://issues.apache.org/jira/browse/HBASE-7765 > Project: HBase > Issue Type: New Feature > Components: wal > Affects Versions: 0.94.4 > Reporter: Himanshu Vashishtha > Assignee: Himanshu Vashishtha > > There may be a case where a HLog can escape the Log splitting. > It will be good to have a standalone tool that reads entries from a HLog, and replays it back to HBase. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira