{"record":{"id":"901351f7c0cd2b7a","repo":"apache/hadoop","slug":"path-is-missing-901351","errorCode":null,"errorMessage":"<path> is missing.","messagePattern":"<path> is missing\\.","errorType":"exception","errorClass":"HadoopIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/XAttrCommands.java","lineNumber":95,"sourceCode":"        } catch (IllegalArgumentException e) {\n          throw new IllegalArgumentException(\n              \"Invalid/unsupported encoding option specified: \" + en);\n        }\n        Preconditions.checkArgument(encoding != null,\n            \"Invalid/unsupported encoding option specified: \" + en);\n      }\n\n      boolean r = StringUtils.popOption(\"-R\", args);\n      setRecursive(r);\n      dump = StringUtils.popOption(\"-d\", args);\n\n      if (!dump && name == null) {\n        throw new HadoopIllegalArgumentException(\n            \"Must specify '-n name' or '-d' option.\");\n      }\n\n      if (args.isEmpty()) {\n        throw new HadoopIllegalArgumentException(\"<path> is missing.\");\n      }\n      if (args.size() > 1) {\n        throw new HadoopIllegalArgumentException(\"Too many arguments.\");\n      }\n    }\n\n    @Override\n    protected void processPath(PathData item) throws IOException {\n      out.println(\"# file: \" + item);\n      if (dump) {\n        Map<String, byte[]> xattrs = item.fs.getXAttrs(item.path);\n        if (xattrs != null) {\n          Iterator<Entry<String, byte[]>> iter = xattrs.entrySet().iterator();\n          while(iter.hasNext()) {\n            Entry<String, byte[]> entry = iter.next();\n            printXAttr(entry.getKey(), entry.getValue());\n          }\n        }","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/XAttrCommands.java#L77-L113","documentation":"Error \"<path> is missing.\" thrown in apache/hadoop.","triggerScenarios":"Thrown by xattr shell commands when the required <path> argument is not provided.","commonSituations":"See trigger scenarios.","solutions":["Provide the <path> argument to the xattr command.","Check the command syntax; a target path is required."],"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"}