hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-7765) A tool to replay HLog entries in case a log file is missed while log splitting
Date Tue, 05 Feb 2013 23:51:14 GMT

     [ 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] <wal inputdir> <tables>
[<tableMappings>]");
 40     System.err.println("Read all WAL entries for <tables>.");
 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 <tables> is a comma separated list of tables.\n");
 36     System.err.println("The WAL entries can be mapped to new set of tables via <tableMapping>.");
 35     System.err.println("<tableMapping> is a command separated list of targettables.");
 34     System.err.println("If specified, each table in <tables> 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

Mime
View raw message