{"record":{"id":"51624d1aae49f693","repo":"apache/hadoop","slug":"no-input-paths-specified-in-job","errorCode":null,"errorMessage":"No input paths specified in job","messagePattern":"No input paths specified in job","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/FileInputFormat.java","lineNumber":218,"sourceCode":"    }\n  }\n  \n  /**\n   * List input directories.\n   * Subclasses may override to, e.g., select only files matching a regular\n   * expression. \n   * \n   * If security is enabled, this method collects\n   * delegation tokens from the input paths and adds them to the job's\n   * credentials.\n   * @param job the job to list input paths for and attach tokens to.\n   * @return array of FileStatus objects\n   * @throws IOException if zero items.\n   */\n  protected FileStatus[] listStatus(JobConf job) throws IOException {\n    Path[] dirs = getInputPaths(job);\n    if (dirs.length == 0) {\n      throw new IOException(\"No input paths specified in job\");\n    }\n\n    // get tokens for all the required FileSystems..\n    TokenCache.obtainTokensForNamenodes(job.getCredentials(), dirs, job);\n    \n    // Whether we need to recursive look into the directory structure\n    boolean recursive = job.getBoolean(INPUT_DIR_RECURSIVE, false);\n\n    // creates a MultiPathFilter with the hiddenFileFilter and the\n    // user provided one (if any).\n    List<PathFilter> filters = new ArrayList<PathFilter>();\n    filters.add(hiddenFileFilter);\n    PathFilter jobFilter = getInputPathFilter(job);\n    if (jobFilter != null) {\n      filters.add(jobFilter);\n    }\n    PathFilter inputFilter = new MultiPathFilter(filters);\n","sourceCodeStart":200,"sourceCodeEnd":236,"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/FileInputFormat.java#L200-L236","documentation":"Error \"No input paths specified in job\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileInputFormat.java:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add at least one input path with FileInputFormat.addInputPath(job, path) or set mapreduce.input.fileinputformat.inputdir before submitting the job.","Verify the configured input paths exist and are readable by the submitting user."],"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"}