HBASE-7765 A tool to replay HLog entries in case a log file is missed while log splitting

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1442853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-02-06 06:58:53 +00:00
parent 6fcae1027d
commit 23db419bf3
1 changed files with 9 additions and 2 deletions

View File

@ -251,9 +251,12 @@ row10 c1 c2
<title>WALPlayer</title>
<para>WALPlayer is a utility to replay WAL files into HBase.
</para>
<para>The WAL can be replayed for a set of tables or all tables, and a timerange can be provided (in milliseconds). The WAL is filtered to this set of tables. The output can optionally be mapped to another set of tables.
<para>The WAL can be replayed for a set of tables or all tables, and a
timerange can be provided (in milliseconds). The WAL is filtered to
this set of tables. The output can optionally be mapped to another set of tables.
</para>
<para>WALPlayer can also generate HFiles for later bulk importing, in that case only a single table and no mapping can be specified.
<para>WALPlayer can also generate HFiles for later bulk importing, in that case
only a single table and no mapping can be specified.
</para>
<para>Invoke via:
<programlisting>$ bin/hbase org.apache.hadoop.hbase.mapreduce.WALPlayer [options] &lt;wal inputdir&gt; &lt;tables&gt; [&lt;tableMappings>]&gt;
@ -263,6 +266,10 @@ row10 c1 c2
<programlisting>$ bin/hbase org.apache.hadoop.hbase.mapreduce.WALPlayer /backuplogdir oldTable1,oldTable2 newTable1,newTable2
</programlisting>
</para>
<para>
WALPlayer, by default, runs as a mapreduce job. To NOT run WALPlayer as a mapreduce job on your cluster,
force it to run all in the local process by adding the flags <code>-Dmapred.job.tracker=local</code> on the command line.
</para>
</section>
<section xml:id="rowcounter">
<title>RowCounter and CellCounter</title>