{"record":{"id":"7f549d1be10bdb8a","repo":"apache/hadoop","slug":"job-resourceskyline-history-is-containing-less-job","errorCode":null,"errorMessage":"Job ResourceSkyline history is containing less job runs than ${minJobRuns}, please try again with valid Job ResourceSkyline history","messagePattern":"Job ResourceSkyline history is containing less job runs than (.+?), please try again with valid Job ResourceSkyline history","errorType":"exception","errorClass":"InvalidInputException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/solver/preprocess/SolverPreprocessor.java","lineNumber":213,"sourceCode":"    List<ResourceSkyline> resourceSkylines = new ArrayList<ResourceSkyline>();\n    for (Map.Entry<RecurrenceId, List<ResourceSkyline>> entry : jobHistory\n        .entrySet()) {\n      // TODO: identify different jobs within the same pipeline\n      // right now, we do prediction at the granularity of pipeline, i.e., we\n      // will merge the\n      // resource skylines of jobs within the same pipeline into one aggregated\n      // resource skyline\n      ResourceSkyline skylineAgg = null;\n      skylineAgg = mergeSkyline(entry.getValue());\n      resourceSkylines.add(skylineAgg);\n    }\n    int numJobs = resourceSkylines.size();\n    if (numJobs < minJobRuns) {\n      LOGGER.error(\n          \"Solver requires job resource skyline history for at least {} runs,\"\n              + \" but it only receives history info for {}  runs.\",\n          minJobRuns, numJobs);\n      throw new InvalidInputException(\"Job ResourceSkyline history\",\n          \"containing less job runs\" + \" than \" + minJobRuns);\n    }\n\n    return resourceSkylines;\n  }\n}\n","sourceCodeStart":195,"sourceCodeEnd":220,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-resourceestimator/src/main/java/org/apache/hadoop/resourceestimator/solver/preprocess/SolverPreprocessor.java#L195-L220","documentation":"Error \"Job ResourceSkyline history is containing less job runs than ${minJobRuns}, please try again with valid Job ResourceSkyline history\" thrown in apache/hadoop.","triggerScenarios":"The job resource skyline history contains fewer job runs than the configured minimum, so the estimator cannot produce a reliable estimate.","commonSituations":"See trigger scenarios.","solutions":["Collect more job runs (at least minJobRuns) into the ResourceSkyline history before running the solver, or lower minJobRuns."],"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-22T20:17:22.307Z"}