Skip to content

Commit b5366c7

Browse files
committed
HBASE-22859 [HBCK2] Fix the orphan regions on filesystem
Backport of above; only the usage message was changed in the backport; nothing else. Usage points at refguide. Signed-off-by: Peter Somogyi <psomogyi@apache.org> Signed-off-by: Guanghao Zhang <zghao@apache.org>
1 parent 973ec21 commit b5366c7

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/tool/LoadIncrementalHFiles.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,19 @@ public LoadIncrementalHFiles(Configuration conf) {
190190
}
191191

192192
private void usage() {
193-
System.err.println("usage: " + "bin/hbase completebulkload <-Dargs> "
194-
+ "</path/to/hfileoutputformat-output> <tablename>\n"
195-
+ "\t-D" + CREATE_TABLE_CONF_KEY + "=no can be used to avoid creation "
196-
+ "of a table by this tool.\n"
197-
+ "\t Note: if you set this to 'no', then target table must already exist.\n"
198-
+ "\t-D" + IGNORE_UNMATCHED_CF_CONF_KEY + "=yes can be used to ignore "
199-
+ "unmatched column families.\n"
200-
+ "\t-loadTable switch implies your baseDirectory to store file has a "
201-
+ "depth of 3, table must exist\n"
202-
+ "\t and -loadTable switch is the last option on the command line.\n\n");
193+
System.err.println("Usage: " + "bin/hbase completebulkload [OPTIONS] "
194+
+ "</PATH/TO/HFILEOUTPUTFORMAT-OUTPUT> <TABLENAME>\n"
195+
+ "Loads directory of hfiles -- a region dir or product of HFileOutputFormat -- "
196+
+ "into an hbase table.\n"
197+
+ "OPTIONS (for other -D options, see source code):\n"
198+
+ " -D" + CREATE_TABLE_CONF_KEY + "=no whether to create table; when 'no', target "
199+
+ "table must exist.\n"
200+
+ " -D" + IGNORE_UNMATCHED_CF_CONF_KEY + "=yes to ignore unmatched column families.\n"
201+
+ " -loadTable for when directory of files to load has a depth of 3; target table must "
202+
+ "exist;\n"
203+
+ " must be last of the options on command line.\n"
204+
+ "See http://hbase.apache.org/book.html#arch.bulk.load.complete.strays for "
205+
+ "documentation.\n");
203206
}
204207

205208
/**

0 commit comments

Comments
 (0)