diff --git a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java index 12b8293459b..7889f6cf7b3 100644 --- a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java +++ b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupDriver.java @@ -85,8 +85,6 @@ public class BackupDriver extends AbstractHBaseTool { return -1; } - System.out.println(BackupRestoreConstants.VERIFY_BACKUP); - String cmd = null; String[] remainArgs = null; if (args == null || args.length == 0) { @@ -210,5 +208,6 @@ public class BackupDriver extends AbstractHBaseTool { protected void printToolUsage() throws IOException { System.out.println(BackupCommands.USAGE); + System.out.println(BackupRestoreConstants.VERIFY_BACKUP); } } diff --git a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupRestoreConstants.java b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupRestoreConstants.java index 16ec3d20304..0e0b90c0fc4 100644 --- a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupRestoreConstants.java +++ b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupRestoreConstants.java @@ -105,13 +105,13 @@ public interface BackupRestoreConstants { + "org.apache.hadoop.hbase.backup.regionserver.LogRollRegionServerProcedureManager\n" + "hbase.coprocessor.region.classes=YOUR_CLASSES," + "org.apache.hadoop.hbase.backup.BackupObserver\n" - + "and restart the cluster\n"; + + "and restart the cluster\n" + + "For more information please see http://hbase.apache.org/book.html#backuprestore\n"; String ENABLE_BACKUP = "Backup is not enabled. To enable backup, "+ "in hbase-site.xml, set:\n " + BACKUP_CONFIG_STRING; - String VERIFY_BACKUP = "Please make sure that backup is enabled on the cluster. To enable " - + "backup, in hbase-site.xml, set:\n " + BACKUP_CONFIG_STRING; + String VERIFY_BACKUP = "To enable backup, in hbase-site.xml, set:\n " + BACKUP_CONFIG_STRING; /* * Delimiter in table name list in restore command diff --git a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/RestoreDriver.java b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/RestoreDriver.java index 2399385e4af..433815851a7 100644 --- a/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/RestoreDriver.java +++ b/hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/RestoreDriver.java @@ -92,8 +92,6 @@ public class RestoreDriver extends AbstractHBaseTool { return -1; } - System.out.println(BackupRestoreConstants.VERIFY_BACKUP); - // enable debug logging if (cmd.hasOption(OPTION_DEBUG)) { Log4jUtils.setLogLevel("org.apache.hadoop.hbase.backup", "DEBUG"); @@ -269,5 +267,6 @@ public class RestoreDriver extends AbstractHBaseTool { helpFormatter.setWidth(100); helpFormatter.setSyntaxPrefix("Options:"); helpFormatter.printHelp(" ", null, options, USAGE_FOOTER); + System.out.println(BackupRestoreConstants.VERIFY_BACKUP); } }