apache/hadoop · error · IllegalArgumentException
Invalid entry, invalid destination path {}
Error message
Invalid entry, invalid destination path {} What it means
Error "Invalid entry, invalid destination path {}" thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/records/MountTable.java:401
throw new IllegalArgumentException(
ERROR_MSG_NO_SOURCE_PATH + this);
}
if (!this.getSourcePath().startsWith("/")) {
throw new IllegalArgumentException(
ERROR_MSG_MUST_START_WITH_BACK_SLASH + this);
}
if (this.getDestinations() == null || this.getDestinations().size() == 0) {
throw new IllegalArgumentException(
ERROR_MSG_NO_DEST_PATH_SPECIFIED + this);
}
for (RemoteLocation loc : getDestinations()) {
String nsId = loc.getNameserviceId();
if (nsId == null || nsId.length() == 0) {
throw new IllegalArgumentException(
ERROR_MSG_INVALID_DEST_NS + this);
}
if (loc.getDest() == null || loc.getDest().length() == 0) {
throw new IllegalArgumentException(
ERROR_MSG_INVALID_DEST_PATH + this);
}
if (!loc.getDest().startsWith("/")) {
throw new IllegalArgumentException(
ERROR_MSG_ALL_DEST_MUST_START_WITH_BACK_SLASH + this);
}
}
if (isFaultTolerant()) {
if (getDestinations().size() < 2) {
throw new IllegalArgumentException(
ERROR_MSG_FAULT_TOLERANT_MULTI_DEST + this);
}
if (!isAll()) {
throw new IllegalArgumentException(
ERROR_MSG_FAULT_TOLERANT_ALL + this);
}
}
}View on GitHub (pinned to 2add963021)
Solutions
- Provide a non-empty destination path for every destination in the mount entry.
- Correct the stored record so each nameservice destination includes its path.
When it happens
Trigger: MountTable validation: a destination path is null or empty.
Common situations: Mount add request where a destination pair omitted the path component.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/79d161a67b3a85a8.
Report an issue: GitHub.