HBASE-17916 Error message not clear when the permission of staging dir

is not as expected

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Xiang Li 2017-04-14 20:53:57 +08:00 committed by Michael Stack
parent 1afb86a1c1
commit cb2f2a7d1b
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class SecureBulkLoadEndpoint extends SecureBulkLoadService
String scheme = fs.getScheme().toLowerCase();
if (!fsSet.contains(scheme) && !status.getPermission().equals(PERM_HIDDEN)) {
throw new IllegalStateException(
"Directory already exists but permissions aren't set to '-rwx--x--x' ");
"Staging directory of " + baseStagingDir + " already exists but permissions aren't set to '-rwx--x--x' ");
}
} catch (IOException e) {
throw new IllegalStateException("Failed to get FileSystem instance",e);