[ 
https://issues.apache.org/jira/browse/HDDS-1246?focusedWorklogId=212854&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-212854
 ]

ASF GitHub Bot logged work on HDDS-1246:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Mar/19 03:15
            Start Date: 14/Mar/19 03:15
    Worklog Time Spent: 10m 
      Work Description: ajayydv commented on pull request #594: HDDS-1246. Add 
ozone delegation token utility subcmd for Ozone CLI. Contributed by Xiaoyu Yao.
URL: https://github.com/apache/hadoop/pull/594#discussion_r265407031
 
 

 ##########
 File path: 
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
 ##########
 @@ -445,7 +444,18 @@ public void removeBucketAcls(
   @Override
   public Token<OzoneTokenIdentifier> getDelegationToken(Text renewer)
       throws IOException {
-    return ozoneManagerClient.getDelegationToken(renewer);
+
+    Token<OzoneTokenIdentifier> token =
+        ozoneManagerClient.getDelegationToken(renewer);
+    if (token != null) {
+      Text dtService =
+          getOMProxyProvider().getProxy().getDelegationTokenService();
+      token.setService(dtService);
 
 Review comment:
   On a related note it seems leader in OM HA may change which will mean 
previously obtained token will not be selected by TokenSelector.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 212854)
    Time Spent: 50m  (was: 40m)

> Add ozone delegation token utility subcmd for Ozone CLI
> -------------------------------------------------------
>
>                 Key: HDDS-1246
>                 URL: https://issues.apache.org/jira/browse/HDDS-1246
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> This allow running dtutil with integration test and dev test for demo of 
> Ozone security.
>  
>  
>  
>  



--
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

Reply via email to