Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8307

Spurious DNS Queries from hdfs shell

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.7.4
    • Component/s: hdfs-client
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      With HA configured the hdfs shell (org.apache.hadoop.fs.FsShell) seems to issue a DNS query for the cluster Name. if fs.defaultFS is set to hdfs://mycluster, then the shell seems to issue a DNS query for mycluster.FQDN or mycluster.

      since mycluster not a machine name DNS query always fails with
      "DNS 85 Standard query response 0x2aeb No such name"

      Repro Steps:

      1. Setup a HA cluster
      2. Log on to any node
      3. Run wireshark monitoring port 53 - "sudo tshark 'port 53'"
      4. Run "sudo -u hdfs hdfs dfs -ls /"
      5. You should be able to see DNS queries to mycluster.FQDN in wireshark

        Attachments

        1. HDFS-8307.001.patch
          1 kB
          Anu Engineer
        2. HDFS-8307-branch-2.7.patch
          1 kB
          Andres Perez

          Issue Links

            Activity

              People

              • Assignee:
                aaperezl Andres Perez
                Reporter:
                anu Anu Engineer
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: