HDFS-10417. Improve error message from checkBlockLocalPathAccess. Contributed by Tianyin Xu.
This commit is contained in:
parent
fa3bc3405d
commit
0942954e8a
@ -1717,7 +1717,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user