{"record":{"id":"72740058802127ed","repo":"apache/hadoop","slug":"no-suitable-parser","errorCode":null,"errorMessage":"No suitable parser.","messagePattern":"No suitable parser\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JobHistoryParserFactory.java","lineNumber":38,"sourceCode":"import java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * {@link JobHistoryParserFactory} is a singleton class that attempts to\n * determine the version of job history and return a proper parser.\n */\npublic class JobHistoryParserFactory {\n  public static JobHistoryParser getParser(RewindableInputStream ris)\n      throws IOException {\n    for (VersionDetector vd : VersionDetector.values()) {\n      boolean canParse = vd.canParse(ris);\n      ris.rewind();\n      if (canParse) {\n        return vd.newInstance(ris);\n      }\n    }\n\n    throw new IOException(\"No suitable parser.\");\n  }\n\n  public enum VersionDetector {\n    Hadoop20() {\n\n      @Override\n      public boolean canParse(InputStream input) throws IOException {\n        return Hadoop20JHParser.canParse(input);\n      }\n\n      @Override\n      public JobHistoryParser newInstance(InputStream input) throws IOException {\n        return new Hadoop20JHParser(input);\n      }\n    },\n\n    Current() {\n","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/JobHistoryParserFactory.java#L20-L56","documentation":"Error \"No suitable parser.\" thrown in apache/hadoop.","triggerScenarios":"JobHistoryParserFactory cannot find a parser able to read the given job history file, e.g. because the file format/version is unrecognized.","commonSituations":"See trigger scenarios.","solutions":["Feed the parser factory a supported job history file (jhist or recognized log format); no parser matched the input."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}