Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-1173

hdfsConnect in libhdfs3 is not consistent with hdfsConnect in native libhdfs (JNI) when port is 0

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • libhdfs
    • None

    Description

      Hello,

      I noticed that the following is not possible with libhdfs3

      hdfsFS fs = hdfsConnect("default", 0);

      because of asserts such as:

      PARAMETER_ASSERT(port > 0, NULL, EINVAL);

      I could be nice to allow that to be consistent with what is done in the native libhdfs (JNI).
      The file of interest in the native library is:

      • hadoop-hdfs-native-client/src/main/native/libhdfs/hdfs.c

      Attachments

        Activity

          People

            wangzw Zhanwei Wang
            pidefrem Pierre de Freminville
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: