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:
parent
639bf9cfa9
commit
3185729df1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue