apache/hadoop · error · RuntimeException
No latest state persist directory found! Disable…
Error message
No latest state persist directory found! Disable persistence and run.
What it means
Rumen StatePool reload failure: reloading was enabled but no readable committed state file was found in the persist directory, so there is no prior state to restore.
Solutions
- Run once to produce a state directory, or point the configuration at an existing state directory; otherwise persistence is skipped.
Defensive patterns
Strategy: validation
When it happens
Trigger: StatePool finds no previously persisted state directory to load from, so it starts without restored state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/94da76b1d33e1eff.
Report an issue: GitHub.
Appendix: source
Thrown at hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/state/StatePool.java:189
// reload
reload();
// now set the timestamp
DateFormat formatter =
new SimpleDateFormat("dd-MMM-yyyy-hh'H'-mm'M'-ss'S'");
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(System.currentTimeMillis());
timeStamp = formatter.format(calendar.getTime());
isInitialized = true;
}
private void reload() throws Exception {
if (reload) {
// Reload persisted entries
Path stateFilename = new Path(persistDirPath, COMMIT_STATE_FILENAME);
if (!reloadState(stateFilename, conf)) {
throw new RuntimeException("No latest state persist directory found!"
+ " Disable persistence and run.");
}
}
}
private boolean reloadState(Path stateFile, Configuration configuration)
throws Exception {
FileSystem fs = stateFile.getFileSystem(configuration);
try (FSDataInputStream in = fs.open(stateFile)) {
System.out.println("Reading state from " + stateFile.toString());
read(in);
return true;
} catch (FileNotFoundException e) {
System.out.println("No state information found for " + stateFile);
return false;
}
}
View on GitHub (pinned to 2add963021)