HDFS-10417. Improve error message from checkBlockLocalPathAccess. Contributed by Tianyin Xu.

(cherry picked from commit 0942954e8a)
This commit is contained in:
Kihwal Lee 2016-05-17 15:10:47 -05:00
parent 6ebb92c9c1
commit 70ee477e5f
1 changed files with 2 additions and 1 deletions

View File

@ -1703,7 +1703,8 @@ private void checkBlockLocalPathAccess() throws IOException {
throw new AccessControlException( throw new AccessControlException(
"Can't continue with getBlockLocalPathInfo() " "Can't continue with getBlockLocalPathInfo() "
+ "authorization. The user " + currentUser + "authorization. The user " + currentUser
+ " is not allowed to call getBlockLocalPathInfo"); + " is not configured in "
+ DFSConfigKeys.DFS_BLOCK_LOCAL_PATH_ACCESS_USER_KEY);
} }
} }