HDFS-10417. Improve error message from checkBlockLocalPathAccess. Contributed by Tianyin Xu.
(cherry picked from commit 0942954e8ab6bef636c2648d0d5a0227a50f799c)
This commit is contained in:
parent
c983115e4c
commit
cb5a1edd1c
@ -1690,7 +1690,8 @@ private void checkBlockLocalPathAccess() throws IOException {
|
||||
throw new AccessControlException(
|
||||
"Can't continue with getBlockLocalPathInfo() "
|
||||
+ "authorization. The user " + currentUser
|
||||
+ " is not allowed to call getBlockLocalPathInfo");
|
||||
+ " is not configured in "
|
||||
+ DFSConfigKeys.DFS_BLOCK_LOCAL_PATH_ACCESS_USER_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user