{"record":{"id":"a525d8c58bf95019","repo":"apache/hadoop","slug":"eio-a525d8","errorCode":"EIO","errorMessage":"nmdGetNameNodePort failed with error %d\n","messagePattern":"nmdGetNameNodePort failed with error (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_zerocopy.c","lineNumber":213,"sourceCode":"        blockLen = getZeroCopyBlockLen(blockIdx);\n        data = getZeroCopyBlockData(blockIdx);\n        EXPECT_NONNULL(data);\n        EXPECT_INT_EQ(blockLen, hdfsWrite(fs, file, data, blockLen));\n    }\n    EXPECT_ZERO(hdfsCloseFile(fs, file));\n    return 0;\n}\n\nstatic int nmdConfigureHdfsBuilder(struct NativeMiniDfsCluster *cl,\n                            struct hdfsBuilder *bld) {\n    int ret;\n    tPort port;\n    const char *domainSocket;\n\n    hdfsBuilderSetNameNode(bld, \"localhost\");\n    port = (tPort) nmdGetNameNodePort(cl);\n    if (port < 0) {\n      fprintf(stderr, \"nmdGetNameNodePort failed with error %d\\n\", -port);\n      return EIO;\n    }\n    hdfsBuilderSetNameNodePort(bld, port);\n\n    domainSocket = hdfsGetDomainSocketPath(cl);\n\n    if (domainSocket) {\n      ret = hdfsBuilderConfSetStr(bld, \"dfs.client.read.shortcircuit\", \"true\");\n      if (ret) {\n        return ret;\n      }\n      ret = hdfsBuilderConfSetStr(bld, \"dfs.domain.socket.path\",\n                                  domainSocket);\n      if (ret) {\n        return ret;\n      }\n    }\n    return 0;","sourceCodeStart":195,"sourceCodeEnd":231,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/test_libhdfs_zerocopy.c#L195-L231","documentation":"Error \"nmdGetNameNodePort failed with error %d\n\" thrown in apache/hadoop.","triggerScenarios":"nmdGetNameNodePort helper failed to resolve the NameNode port needed by the zerocopy test.","commonSituations":"Missing or malformed environment/config value for the NameNode port when running test_libhdfs_zerocopy.","solutions":["Set the environment variable used by nmdGetNameNodePort (e.g. LIBHDFS_ZERO_COPY_PORT / HDFS config) to a valid numeric port.","Verify the port value is parseable and within 1-65535.","Confirm the mini-cluster or real NameNode configuration that supplies the port is in place."],"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"}