apache/hadoop · error · IllegalArgumentException
Invalid entry, no source path specified {}
Error message
Invalid entry, no source path specified {} What it means
Error "Invalid entry, no source path specified {}" 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:383
if (this.getQuota() != null) {
sb.append("[quota:").append(this.getQuota()).append("]");
}
return sb.toString();
}
@Override
public SortedMap<String, String> getPrimaryKeys() {
SortedMap<String, String> map = new TreeMap<>();
map.put("sourcePath", this.getSourcePath());
return map;
}
@Override
public void validate() {
super.validate();
if (this.getSourcePath() == null || this.getSourcePath().length() == 0) {
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(View on GitHub (pinned to 2add963021)
Solutions
- Provide a non-empty source path when adding the mount entry (dfsrouteradmin -add <src> <nsId> <dest>).
- Fix the client code/record construction to always set the source path before validation.
When it happens
Trigger: MountTable record validation: the source path field is null or empty.
Common situations: Malformed mount table add request or corrupted State Store record lacking a source path.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/25e1385d52046c63.
Report an issue: GitHub.