hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HDDS-1246) Add ozone delegation token utility subcmd for Ozone CLI
Date Wed, 13 Mar 2019 23:05:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 13/Mar/19 23:04
            Start Date: 13/Mar/19 23:04
    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_r265365974
 
 

 ##########
 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);
+      LOG.info("Created " + token.toString());
+    } else {
+      LOG.info("Cannot get ozone delegation token from " + renewer);
 
 Review comment:
   Shall we replace "Cannot get ozone delegation token from" with "Cannot get ozone delegation
token for {}, renewer"?
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 212757)
    Time Spent: 20m  (was: 10m)

> 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: 20m
>  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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message