{"record":{"id":"eaa8a71ee4a90f93","repo":"apache/hadoop","slug":"undefined-job-output-path","errorCode":null,"errorMessage":"Undefined job output-path","messagePattern":"Undefined job output-path","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileOutputFormat.java","lineNumber":248,"sourceCode":"    String name = conf.get(JobContext.TASK_OUTPUT_DIR);\n    return name == null ? null: new Path(name);\n  }\n\n  /**\n   * Helper function to create the task's temporary output directory and \n   * return the path to the task's output file.\n   * \n   * @param conf job-configuration\n   * @param name temporary task-output filename\n   * @return path to the task's temporary output file\n   * @throws IOException\n   */\n  public static Path getTaskOutputPath(JobConf conf, String name) \n  throws IOException {\n    // ${mapred.out.dir}\n    Path outputPath = getOutputPath(conf);\n    if (outputPath == null) {\n      throw new IOException(\"Undefined job output-path\");\n    }\n\n    OutputCommitter committer = conf.getOutputCommitter();\n    Path workPath = outputPath;\n    TaskAttemptContext context = \n      new TaskAttemptContextImpl(conf,\n                                 TaskAttemptID.forName(conf.get(\n                                     JobContext.TASK_ATTEMPT_ID)));\n    if (committer instanceof FileOutputCommitter) {\n      workPath = ((FileOutputCommitter)committer).getWorkPath(context,\n                                                              outputPath);\n    }\n    \n    // ${mapred.out.dir}/_temporary/_${taskid}/${name}\n    return new Path(workPath, name);\n  } \n\n  /**","sourceCodeStart":230,"sourceCodeEnd":266,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileOutputFormat.java#L230-L266","documentation":"Error \"Undefined job output-path\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileOutputFormat.java:248 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Define the job output path via FileOutputFormat.setOutputPath or mapreduce.output.fileoutputformat.outputdir before calling getWorkOutputPath."],"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"}