{"record":{"id":"ecdc564acbacae95","repo":"apache/hadoop","slug":"job-failed-ecdc56","errorCode":null,"errorMessage":"{} job failed!","messagePattern":"(.+?) job failed!","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java","lineNumber":251,"sourceCode":"  // Launch Input/DistCache Data Generation job and wait for completion\n  void launchGridmixJob(GridmixJob job)\n      throws IOException, InterruptedException {\n    submitter.add(job);\n\n    // TODO add listeners, use for job dependencies\n    try {\n      while (!job.isSubmitted()) {\n        try {\n            Thread.sleep(100); // sleep\n          } catch (InterruptedException ie) {}\n      }\n      // wait for completion\n      job.getJob().waitForCompletion(false);\n    } catch (ClassNotFoundException e) {\n      throw new IOException(\"Internal error\", e);\n    }\n    if (!job.getJob().isSuccessful()) {\n      throw new IOException(job.getJob().getJobName() + \" job failed!\");\n    }\n  }\n\n  /**\n   * Create an appropriate {@code JobStoryProducer} object for the\n   * given trace.\n   * \n   * @param traceIn the path to the trace file. The special path\n   * &quot;-&quot; denotes the standard input stream.\n   *\n   * @param conf the configuration to be used.\n   *\n   * @throws IOException if there was an error.\n   */\n  protected JobStoryProducer createJobStoryProducer(String traceIn,\n      Configuration conf) throws IOException {\n    if (\"-\".equals(traceIn)) {\n      return new ZombieJobProducer(System.in, null);","sourceCodeStart":233,"sourceCodeEnd":269,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/Gridmix.java#L233-L269","documentation":"Error \"{} job failed!\" thrown in apache/hadoop.","triggerScenarios":"A Gridmix sub-job (load or sleep job) submitted to the cluster finishes with a non-success status, causing the overall Gridmix run to fail.","commonSituations":"See trigger scenarios.","solutions":["Inspect the failed job's logs in the cluster to find the root cause; Gridmix reports the job failure state."],"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"}