[ 
https://issues.apache.org/jira/browse/HDFS-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13980361#comment-13980361
 ] 

Haohui Mai commented on HDFS-6210:
----------------------------------

The patch looks good, except that the following code is dead / irrelevant, thus 
it can be removed:

{code}
+  private static final String TEST_RENEWER = "JobTracker";
...
+  @Rule
+  public TemporaryFolder folder = new TemporaryFolder();
...

+      conf.setLong(
+          DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_MAX_LIFETIME_KEY, 10000);
+      conf.setLong(
+          DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_RENEW_INTERVAL_KEY, 
5000);
+      conf.setBoolean(
+          DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY, true);
+      conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTH_TO_LOCAL,
+          "RULE:[2:$1@$0](JobTracker@.*FOO.COM)s/@.*//" + "DEFAULT");
+      // Get delegation tokens so we log the delegation token op

...

+      Token<?>[] delegationTokens = hdfs
+          .addDelegationTokens(TEST_RENEWER, null);
+      for (Token<?> t : delegationTokens) {
+        LOG.debug("got token " + t);
+      }
{code}



> Support GETACLSTATUS operation in WebImageViewer
> ------------------------------------------------
>
>                 Key: HDFS-6210
>                 URL: https://issues.apache.org/jira/browse/HDFS-6210
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: tools
>    Affects Versions: 2.5.0
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>         Attachments: HDFS-6210.2.patch, HDFS-6210.3.patch, HDFS-6210.patch, 
> HDFS-6210.patch
>
>
> In HDFS-6170, I found {{GETACLSTATUS}} operation support is also required to 
> execute "hdfs dfs -ls" to WebImageViewer.
> {code}
> [root@trunk ~]# hdfs dfs -ls webhdfs://localhost:5978/
> 14/04/09 11:53:04 WARN util.NativeCodeLoader: Unable to load native-hadoop 
> library for your platform... using builtin-java classes where applicable
> Found 1 items
> ls: Unexpected HTTP response: code=400 != 200, op=GETACLSTATUS, message=Bad 
> Request
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to