Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2652 Port token service changes from 205
  3. HDFS-2786

Fix host-based token incompatibilities in DFSUtil

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.1, 2.0.0-alpha
    • 0.23.1
    • namenode, security
    • None
    • Reviewed

    Description

      DFSUtil introduces new static methods that duplicate functionality in NetUtils. These new methods lack the logic necessary for host-based tokens to work. After speaking with Suresh, the approach being taken is:

      • DFSUtil.getSocketAddress will be removed. Callers will be reverted to using the NetUtils version.
      • DFSUtil.getDFSClient will changed to take accept a uri/host:port string instead of an InetSocketAddress. The method will internal call NetUtils.createSocketAddr. This alleviates the callers from being required to call NetUtils.createSocketAddr and reduce the opportunity for error that will break host-based tokens.

      Attachments

        1. hdfs-2786.patch
          6 kB
          Kihwal Lee
        2. hdfs-2786.patch
          11 kB
          Kihwal Lee

        Issue Links

          Activity

            People

              kihwal Kihwal Lee
              daryn Daryn Sharp
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: