{"record":{"id":"81cce65dbe21371f","repo":"apache/hadoop","slug":"fusenewconnect-usrname-s-unable-to-create-fs-e","errorCode":null,"errorMessage":"fuseNewConnect(usrname=%s): Unable to create fs: error code %d\n","messagePattern":"fuseNewConnect\\(usrname=(.+?)\\): Unable to create fs: error code (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_connect.c","lineNumber":519,"sourceCode":"    // with ticket cache based authentication as we have the OS user name here\n    // not the real kerberos principal name. So with SIMPLE auth we pass on the\n    // OS username still, and the UGI will use that as the username, but with\n    // kerberos authentication we do not pass in the OS username and let the\n    // authentication happen with the principal who's ticket is in the ticket\n    // cache. (HDFS-15034 is still a possible improvement for SIMPLE AUTH.)\n    hdfsBuilderSetUserName(bld, usrname);\n  }\n  conn->usrname = strdup(usrname);\n  if (!conn->usrname) {\n    fprintf(stderr, \"fuseNewConnect: OOM allocating usrname\\n\");\n    ret = -ENOMEM;\n    goto error;\n  }\n  conn->fs = hdfsBuilderConnect(bld);\n  bld = NULL;\n  if (!conn->fs) {\n    ret = errno;\n    fprintf(stderr, \"fuseNewConnect(usrname=%s): Unable to create fs: \"\n            \"error code %d\\n\", usrname, ret);\n    goto error;\n  }\n  RB_INSERT(hdfsConnTree, &gConnTree, conn);\n  *out = conn;\n  return 0;\n\nerror:\n  if (bld) {\n    hdfsFreeBuilder(bld);\n  }\n  if (conn) {\n    free(conn->kpath);\n    free(conn->usrname);\n    free(conn);\n  }\n  return ret;\n}","sourceCodeStart":501,"sourceCodeEnd":537,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_connect.c#L501-L537","documentation":"Error \"fuseNewConnect(usrname=%s): Unable to create fs: error code %d\n\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/fuse-dfs/fuse_connect.c:519 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the libhdfs/JVM error code; verify HADOOP_CONF_DIR and CLASSPATH are set correctly so libhdfs can build the FileSystem object.","Ensure the NameNode URI and Kerberos configuration are valid, then retry the mount."],"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"}