apache/hadoop · error · IOException
No suitable parser.
Error message
No suitable parser.
What it means
Error "No suitable parser." thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JobHistoryParserFactory.java:38
import java.io.IOException;
import java.io.InputStream;
/**
* {@link JobHistoryParserFactory} is a singleton class that attempts to
* determine the version of job history and return a proper parser.
*/
public class JobHistoryParserFactory {
public static JobHistoryParser getParser(RewindableInputStream ris)
throws IOException {
for (VersionDetector vd : VersionDetector.values()) {
boolean canParse = vd.canParse(ris);
ris.rewind();
if (canParse) {
return vd.newInstance(ris);
}
}
throw new IOException("No suitable parser.");
}
public enum VersionDetector {
Hadoop20() {
@Override
public boolean canParse(InputStream input) throws IOException {
return Hadoop20JHParser.canParse(input);
}
@Override
public JobHistoryParser newInstance(InputStream input) throws IOException {
return new Hadoop20JHParser(input);
}
},
Current() {
View on GitHub (pinned to 2add963021)
Solutions
- Feed the parser factory a supported job history file (jhist or recognized log format); no parser matched the input.
When it happens
Trigger: JobHistoryParserFactory cannot find a parser able to read the given job history file, e.g. because the file format/version is unrecognized.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/72740058802127ed.
Report an issue: GitHub.