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

WebHdfsFileSystem and HftpFileSystem don't need delegation tokens

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.0.0-alpha
    • None
    • None
    • None

    Description

      Parent JIRA to track the work of removing delegation tokens from these filesystems.

      This JIRA has evolved from the initial issue of these filesystems not stopping the DelegationTokenRenewer thread they were creating.

      After further investigation, Daryn pointed out - "If you can get a token, you don't need a token"! Hence, these filesystems shouldn't use delegation tokens.

      Evolution of the JIRA is listed below:
      Update 2:
      DelegationTokenRenewer is not required. The filesystems that are using it already have Krb tickets and do not need tokens. Remove DelegationTokenRenewer and all the related logic from WebHdfs and Hftp filesystems.

      Update1:
      DelegationTokenRenewer should be Singleton - the instance and renewer threads should be created/started lazily. The filesystems using the renewer shouldn't need to explicity start/stop the renewer, and only register/de-register for token renewal.

      Initial issue:
      HftpFileSystem and WebHdfsFileSystem should stop the DelegationTokenRenewer thread when they are closed.

      Attachments

        1. hadoop-8852.patch
          8 kB
          Karthik Kambatla
        2. hadoop-8852.patch
          8 kB
          Karthik Kambatla
        3. hadoop-8852-v1.patch
          7 kB
          Karthik Kambatla
        4. hdfs-4009-v1.patch
          7 kB
          Karthik Kambatla
        5. hdfs-4009-v2.patch
          12 kB
          Karthik Kambatla
        6. hdfs-4009-v3.patch
          12 kB
          Karthik Kambatla

        Issue Links

          Activity

            People

              kasha Karthik Kambatla
              tomwhite Thomas White
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: