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
      1. HDFS-8307.001.patch
        1 kB
        Anu Engineer
      2. HDFS-8307-branch-2.7.patch
        1 kB
        Andres Perez

        Issue Links

          Activity

          Hide
          jojochuang Wei-Chiu Chuang added a comment -

          If I understand the fix correctly, HDFS-9364 fixed the same issue, but it was not backported in branch-2.7.

          Show
          jojochuang Wei-Chiu Chuang added a comment - If I understand the fix correctly, HDFS-9364 fixed the same issue, but it was not backported in branch-2.7.
          Hide
          anu Anu Engineer added a comment -

          Andres Perez Thank you for your contribution. I have committed this to branch-2.7.

          Show
          anu Anu Engineer added a comment - Andres Perez Thank you for your contribution. I have committed this to branch-2.7.
          Hide
          anu Anu Engineer added a comment -

          Thanks for the update, +1. I will commit this to 2.7x series.

          Show
          anu Anu Engineer added a comment - Thanks for the update, +1. I will commit this to 2.7x series.
          Hide
          aaperezl Andres Perez added a comment - - edited

          Hi Anu Engineer,

          Sorry for the wait I was setting up an HA cluster with a trunk build, and the problem does not appear to be there. The rework and new logic must have solved this in 2.8

          Show
          aaperezl Andres Perez added a comment - - edited Hi Anu Engineer , Sorry for the wait I was setting up an HA cluster with a trunk build, and the problem does not appear to be there. The rework and new logic must have solved this in 2.8
          Hide
          anu Anu Engineer added a comment -

          Is this issue fixed in the current trunk ? if not can you please provide a patch for that branch too ?

          Show
          anu Anu Engineer added a comment - Is this issue fixed in the current trunk ? if not can you please provide a patch for that branch too ?
          Hide
          aaperezl Andres Perez added a comment -

          Looking at the code the NameNodeProxies class was reworked in 2.8, that is why I think it would not apply to the branch after 2.7

          Show
          aaperezl Andres Perez added a comment - Looking at the code the NameNodeProxies class was reworked in 2.8, that is why I think it would not apply to the branch after 2.7
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 0s Docker mode activated.
          -1 patch 0m 8s HDFS-8307 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.



          Subsystem Report/Notes
          JIRA Issue HDFS-8307
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838214/HDFS-8307.001.patch
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17487/console
          Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 0s Docker mode activated. -1 patch 0m 8s HDFS-8307 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help. Subsystem Report/Notes JIRA Issue HDFS-8307 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838214/HDFS-8307.001.patch Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17487/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          anu Anu Engineer added a comment -

          Andres Perez Thanks for providing the patch. The patch looks good to me overall. I am re-attaching your patch with a name that will get this patch run against the trunk. Once we have a run without failures, I will commit this patch.

          Show
          anu Anu Engineer added a comment - Andres Perez Thanks for providing the patch. The patch looks good to me overall. I am re-attaching your patch with a name that will get this patch run against the trunk. Once we have a run without failures, I will commit this patch.
          Hide
          aaperezl Andres Perez added a comment -

          Anu Engineer Brahma Reddy Battula can you please review the patch and provide any feedback?

          Show
          aaperezl Andres Perez added a comment - Anu Engineer Brahma Reddy Battula can you please review the patch and provide any feedback?
          Hide
          aaperezl Andres Perez added a comment -

          The whitespace, JDK7 unit test failed, and asf license fail are not related to the patch

          Show
          aaperezl Andres Perez added a comment - The whitespace, JDK7 unit test failed, and asf license fail are not related to the patch
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 26s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
          +1 mvninstall 6m 24s branch-2.7 passed
          +1 compile 1m 12s branch-2.7 passed with JDK v1.8.0_111
          +1 compile 1m 4s branch-2.7 passed with JDK v1.7.0_111
          +1 checkstyle 0m 29s branch-2.7 passed
          +1 mvnsite 1m 4s branch-2.7 passed
          +1 mvneclipse 0m 15s branch-2.7 passed
          +1 findbugs 3m 3s branch-2.7 passed
          +1 javadoc 1m 7s branch-2.7 passed with JDK v1.8.0_111
          +1 javadoc 1m 45s branch-2.7 passed with JDK v1.7.0_111
          +1 mvninstall 0m 53s the patch passed
          +1 compile 1m 1s the patch passed with JDK v1.8.0_111
          +1 javac 1m 1s the patch passed
          +1 compile 1m 5s the patch passed with JDK v1.7.0_111
          +1 javac 1m 5s the patch passed
          +1 checkstyle 0m 24s the patch passed
          +1 mvnsite 0m 56s the patch passed
          +1 mvneclipse 0m 13s the patch passed
          -1 whitespace 0m 0s The patch has 1317 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
          -1 whitespace 0m 30s The patch 76 line(s) with tabs.
          +1 findbugs 3m 7s the patch passed
          +1 javadoc 1m 1s the patch passed with JDK v1.8.0_111
          +1 javadoc 1m 46s the patch passed with JDK v1.7.0_111
          -1 unit 56m 3s hadoop-hdfs in the patch failed with JDK v1.7.0_111.
          -1 asflicense 0m 22s The patch generated 3 ASF License warnings.
          141m 27s



          Reason Tests
          JDK v1.8.0_111 Failed junit tests hadoop.hdfs.server.datanode.TestBlockScanner
            hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots
            hadoop.hdfs.server.balancer.TestBalancer
            hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes
          JDK v1.7.0_111 Failed junit tests hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots
            hadoop.hdfs.server.namenode.TestFileTruncate



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:c420dfe
          JIRA Issue HDFS-8307
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838118/HDFS-8307-branch-2.7.patch
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux ba46816155d1 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision branch-2.7 / d762730
          Default Java 1.7.0_111
          Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_111 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_111
          findbugs v3.0.0
          whitespace https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/whitespace-eol.txt
          whitespace https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/whitespace-tabs.txt
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_111.txt
          JDK v1.7.0_111 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17482/testReport/
          asflicense https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/patch-asflicense-problems.txt
          modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17482/console
          Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 26s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 6m 24s branch-2.7 passed +1 compile 1m 12s branch-2.7 passed with JDK v1.8.0_111 +1 compile 1m 4s branch-2.7 passed with JDK v1.7.0_111 +1 checkstyle 0m 29s branch-2.7 passed +1 mvnsite 1m 4s branch-2.7 passed +1 mvneclipse 0m 15s branch-2.7 passed +1 findbugs 3m 3s branch-2.7 passed +1 javadoc 1m 7s branch-2.7 passed with JDK v1.8.0_111 +1 javadoc 1m 45s branch-2.7 passed with JDK v1.7.0_111 +1 mvninstall 0m 53s the patch passed +1 compile 1m 1s the patch passed with JDK v1.8.0_111 +1 javac 1m 1s the patch passed +1 compile 1m 5s the patch passed with JDK v1.7.0_111 +1 javac 1m 5s the patch passed +1 checkstyle 0m 24s the patch passed +1 mvnsite 0m 56s the patch passed +1 mvneclipse 0m 13s the patch passed -1 whitespace 0m 0s The patch has 1317 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply -1 whitespace 0m 30s The patch 76 line(s) with tabs. +1 findbugs 3m 7s the patch passed +1 javadoc 1m 1s the patch passed with JDK v1.8.0_111 +1 javadoc 1m 46s the patch passed with JDK v1.7.0_111 -1 unit 56m 3s hadoop-hdfs in the patch failed with JDK v1.7.0_111. -1 asflicense 0m 22s The patch generated 3 ASF License warnings. 141m 27s Reason Tests JDK v1.8.0_111 Failed junit tests hadoop.hdfs.server.datanode.TestBlockScanner   hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots   hadoop.hdfs.server.balancer.TestBalancer   hadoop.hdfs.server.balancer.TestBalancerWithMultipleNameNodes JDK v1.7.0_111 Failed junit tests hadoop.hdfs.server.namenode.snapshot.TestRenameWithSnapshots   hadoop.hdfs.server.namenode.TestFileTruncate Subsystem Report/Notes Docker Image:yetus/hadoop:c420dfe JIRA Issue HDFS-8307 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12838118/HDFS-8307-branch-2.7.patch Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux ba46816155d1 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision branch-2.7 / d762730 Default Java 1.7.0_111 Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_111 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_111 findbugs v3.0.0 whitespace https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/whitespace-eol.txt whitespace https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/whitespace-tabs.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_111.txt JDK v1.7.0_111 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/17482/testReport/ asflicense https://builds.apache.org/job/PreCommit-HDFS-Build/17482/artifact/patchprocess/patch-asflicense-problems.txt modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs Console output https://builds.apache.org/job/PreCommit-HDFS-Build/17482/console Powered by Apache Yetus 0.4.0-SNAPSHOT http://yetus.apache.org This message was automatically generated.
          Hide
          aaperezl Andres Perez added a comment -

          The patch was tested using wireshark and there were not any DNS request made with NXDomain responses

          Show
          aaperezl Andres Perez added a comment - The patch was tested using wireshark and there were not any DNS request made with NXDomain responses
          Hide
          brahmareddy Brahma Reddy Battula added a comment -

          FYI..Only Contributors can attach the patch..added you in contributor's list and assigned to you.. thanks for your interest.

          Show
          brahmareddy Brahma Reddy Battula added a comment - FYI..Only Contributors can attach the patch..added you in contributor's list and assigned to you.. thanks for your interest.
          Hide
          aaperezl Andres Perez added a comment -

          I have a proposed patch for this bug but I'm unable to submit it. Should I create a new sub-task/clone this one?

          Show
          aaperezl Andres Perez added a comment - I have a proposed patch for this bug but I'm unable to submit it. Should I create a new sub-task/clone this one?
          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          2.7.3 is under release process, changing target-version to 2.7.4.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - 2.7.3 is under release process, changing target-version to 2.7.4.
          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          Moving out all non-critical / non-blocker issues that didn't make it out of 2.7.2 into 2.7.3.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - Moving out all non-critical / non-blocker issues that didn't make it out of 2.7.2 into 2.7.3.
          Hide
          vinodkv Vinod Kumar Vavilapalli added a comment -

          Moving out all non-critical / non-blocker issues that didn't make it out of 2.7.1 into 2.7.2.

          Show
          vinodkv Vinod Kumar Vavilapalli added a comment - Moving out all non-critical / non-blocker issues that didn't make it out of 2.7.1 into 2.7.2.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development