{"record":{"id":"d486b6f54a980e5d","repo":"apache/hadoop","slug":"the-xattr-operation-has-been-rejected-support-fo","errorCode":null,"errorMessage":"The XAttr operation has been rejected.  Support for XAttrs has been disabled by setting %s to false.","messagePattern":"The XAttr operation has been rejected\\.  Support for XAttrs has been disabled by setting (.+?) to false\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirXAttrOp.java","lineNumber":451,"sourceCode":"   * the configured limit. Setting a limit of zero disables this check.\n   */\n  private static void checkXAttrSize(FSDirectory fsd, XAttr xAttr) {\n    int size = DFSUtil.string2Bytes(xAttr.getName()).length;\n    if (xAttr.getValue() != null) {\n      size += xAttr.getValue().length;\n    }\n    if (size > fsd.getXattrMaxSize()) {\n      throw new HadoopIllegalArgumentException(\n          \"The XAttr is too big. The maximum combined size of the\"\n          + \" name and value is \" + fsd.getXattrMaxSize()\n          + \", but the total size is \" + size);\n    }\n  }\n\n  private static void checkXAttrsConfigFlag(FSDirectory fsd) throws\n                                                             IOException {\n    if (!fsd.isXattrsEnabled()) {\n      throw new IOException(String.format(\n          \"The XAttr operation has been rejected.  \"\n              + \"Support for XAttrs has been disabled by setting %s to false.\",\n          DFSConfigKeys.DFS_NAMENODE_XATTRS_ENABLED_KEY));\n    }\n  }\n\n  private static List<XAttr> getXAttrs(FSDirectory fsd, INodesInPath iip)\n      throws IOException {\n    fsd.readLock();\n    try {\n      return XAttrStorage.readINodeXAttrs(fsd.getAttributes(iip));\n    } finally {\n      fsd.readUnlock();\n    }\n  }\n\n  private static boolean isUserVisible(XAttr xAttr) {\n    XAttr.NameSpace ns = xAttr.getNameSpace();","sourceCodeStart":433,"sourceCodeEnd":469,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirXAttrOp.java#L433-L469","documentation":"Error \"The XAttr operation has been rejected.  Support for XAttrs has been disabled by setting %s to false.\" thrown in apache/hadoop.","triggerScenarios":"Performing any XAttr operation while XAttr support is disabled via dfs.namenode.xattrs.enabled=false.","commonSituations":"See trigger scenarios.","solutions":["Set dfs.namenode.xattrs.enabled to true in hdfs-site.xml and restart the NameNode to enable XAttr support."],"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"}