Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8878

uppercase namenode hostname causes hadoop dfs calls with webhdfs filesystem and fsck to fail when security is on

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3, 1.1.0, 1.2.0, 3.0.0-alpha1
    • 1.1.1, 2.0.3-alpha, 0.23.7
    • None
    • None
    • Reviewed

    Description

      This was noticed on a secure cluster where the namenode had an upper case hostname and the following command was issued

      hadoop dfs -ls webhdfs://NN:PORT/PATH

      the above command failed because delegation token retrieval failed.

      Upon looking at the kerberos logs it was determined that we tried to get the ticket for kerberos principal with upper case hostnames and that host did not exit in kerberos. We should convert the hostnames to lower case. Take a look at HADOOP-7988 where the same fix was applied on a different class.

      I have noticed this issue exists on branch-1. Will investigate trunk and branch-2 and update accordingly.

      Attachments

        1. HADOOP-8878.branch-1.patch
          6 kB
          Arpit Gupta
        2. HADOOP-8878.branch-1.patch
          6 kB
          Arpit Gupta
        3. HADOOP-8878.branch-1.patch
          1 kB
          Arpit Gupta
        4. HADOOP-8878.patch
          6 kB
          Arpit Gupta
        5. HADOOP-8878.patch
          6 kB
          Arpit Gupta
        6. HADOOP-8878.patch
          1 kB
          Arpit Gupta

        Issue Links

          Activity

            People

              arpitgupta Arpit Gupta
              arpitgupta Arpit Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: