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

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

                Author: ASF GitHub Bot
            Created on: 14/Mar/19 20:28
            Start Date: 14/Mar/19 20:28
    Worklog Time Spent: 10m 
      Work Description: xiaoyuyao 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_r265752989
 
 

 ##########
 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:
   Agree, if those changes are not there in ozone-0.4, the cherry-pick and 
merge will be messy.
 
----------------------------------------------------------------
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: 213396)
    Time Spent: 2h 50m  (was: 2h 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: 2h 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