Details
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
Attachments
Issue Links
- is blocked by
-
HDFS-2784 Update hftp and hdfs for host-based token support
- Closed