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

(S)Webhdfs will not use updated delegation tokens available in the ugi after the old ones expire

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      WebHdfsFileSystem can select a delegation token to use from the current user UGI. The token selection is sticky, and WebHdfsFileSystem will re-use it every time without searching the UGI again.

      If the previous token expires, WebHdfsFileSystem will catch the exception and attempt to get a new token. However, the mechanism to get a new token bypasses searching for one on the UGI, so even if there is external logic that has retrieved a new token, it is not possible to make the FileSystem use the new, valid token, rendering the FileSystem object unusable.

      A simple fix would allow WebHdfsFileSystem to re-search the UGI, and if it finds a different token than the cached one try to use it.

      Attachments

        1. HDFS-15545.002.patch
          4 kB
          Issac Buenrostro
        2. HDFS-15545.001.patch
          4 kB
          Issac Buenrostro

        Issue Links

          Activity

            People

              ibuenros Issac Buenrostro
              ibuenros Issac Buenrostro
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m