[ https://issues.apache.org/jira/browse/HDFS-13972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816524#comment-16816524 ]
CR Hota commented on HDFS-13972: -------------------------------- [~elgoiri] Thanks for the feedback. Initially I was inclined with the approach you mentioned , but upon looking more threadlocal model seems to me be a better way to handle it than refactoring functions to allow ugi as an input param. It's more error prone to pass ugi through whole function stack. With threadlocal and getRemoteUser method, this change is restricted to a specific place and not allowing developers to think about what ugi to pass around. This is an edge case where ugi needs to be flipped, for remaining all cases until now, ugi remains that of end user. Yes, DN reports surely needs caching, specially also because its a fan out call to all namenodes and needs multiple optimizations. Will create a Jira for that. > RBF: Support for Delegation Token (WebHDFS) > ------------------------------------------- > > Key: HDFS-13972 > URL: https://issues.apache.org/jira/browse/HDFS-13972 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Íñigo Goiri > Assignee: CR Hota > Priority: Major > Attachments: HDFS-13972-HDFS-13891.001.patch, > HDFS-13972-HDFS-13891.002.patch, HDFS-13972-HDFS-13891.003.patch, > HDFS-13972-HDFS-13891.004.patch, HDFS-13972-HDFS-13891.005.patch, > HDFS-13972-HDFS-13891.006.patch, HDFS-13972-HDFS-13891.007.patch, > HDFS-13972-HDFS-13891.008.patch, HDFS-13972-HDFS-13891.009.patch, > HDFS-13972-HDFS-13891.010.patch, HDFS-13972-HDFS-13891.011.patch, > HDFS-13972-HDFS-13891.012.patch, TestRouterWebHDFSContractTokens.java > > > HDFS Router should support issuing HDFS delegation tokens through WebHDFS. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org