HBASE-8530 Refine error message from ExportSnapshot when there is leftover snapshot in target cluster (Ted Yu)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1481400 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-05-11 20:16:54 +00:00
parent 639bf9cfa9
commit 3185729df1
1 changed files with 3 additions and 1 deletions

View File

@ -608,7 +608,9 @@ public final class ExportSnapshot extends Configured implements Tool {
// Check if the snapshot already in-progress
if (outputFs.exists(snapshotTmpDir)) {
System.err.println("A snapshot with the same name '" + snapshotName + "' is in-progress");
System.err.println("A snapshot with the same name '" + snapshotName + "' may be in-progress");
System.err.println("Please check " + snapshotTmpDir + ". If the snapshot has completed, ");
System.err.println("consider removing " + snapshotTmpDir + " before retrying export");
return 1;
}