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 Thu, 14 Mar 2019 16:46:00 GMT

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

ASF GitHub Bot logged work on HDDS-1246:

                Author: ASF GitHub Bot
            Created on: 14/Mar/19 16:45
            Start Date: 14/Mar/19 16:45
    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_r265664265

 File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java
 @@ -445,7 +444,18 @@ public void removeBucketAcls(
   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:
   We will revisit this when full OM HA is implemented. For 0.4 we can assume this will always
return the first proxy. We will have to do this because the HA code has been partially implemented
in trunk. We don't want to work two different versions that are difficult to merge later.
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:

Issue Time Tracking

    Worklog Id:     (was: 213239)
    Time Spent: 1h 50m  (was: 1h 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: 1h 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

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message