apache/hadoop · error · AclException
e.getMessage() + " Path: " + src
Error message
e.getMessage() + " Path: " + src
What it means
Error "e.getMessage() + " Path: " + src" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAclOp.java:55
FSDirectory fsd, FSPermissionChecker pc, final String srcArg,
List<AclEntry> aclSpec) throws IOException {
String src = srcArg;
checkAclsConfigFlag(fsd);
INodesInPath iip;
fsd.writeLock();
try {
iip = fsd.resolvePath(pc, src, DirOp.WRITE);
src = iip.getPath();
fsd.checkOwner(pc, iip);
INode inode = FSDirectory.resolveLastINode(iip);
int snapshotId = iip.getLatestSnapshotId();
List<AclEntry> existingAcl = AclStorage.readINodeLogicalAcl(inode);
List<AclEntry> newAcl = AclTransformation.mergeAclEntries(
existingAcl, aclSpec);
AclStorage.updateINodeAcl(inode, newAcl, snapshotId);
fsd.getEditLog().logSetAcl(src, newAcl);
} catch (AclException e){
throw new AclException(e.getMessage() + " Path: " + src, e);
} finally {
fsd.writeUnlock();
}
return fsd.getAuditFileInfo(iip);
}
static FileStatus removeAclEntries(
FSDirectory fsd, FSPermissionChecker pc, final String srcArg,
List<AclEntry> aclSpec) throws IOException {
String src = srcArg;
checkAclsConfigFlag(fsd);
INodesInPath iip;
fsd.writeLock();
try {
iip = fsd.resolvePath(pc, src, DirOp.WRITE);
src = iip.getPath();
fsd.checkOwner(pc, iip);
INode inode = FSDirectory.resolveLastINode(iip);View on GitHub (pinned to 2add963021)
Solutions
- Read the underlying ACL error message and path to identify the failing operation (e.g. missing path, permission denied).
- Verify the path exists and the caller has ACL-modify privileges on it.
When it happens
Trigger: An ACL modification (setAcl, modifyAclEntries, removeAclEntries, removeDefaultAcl, removeAcl) fails on a path; the original exception message is re-thrown with the failing path appended.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/de24499857dee880.
Report an issue: GitHub.