Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 293E211095 for ; Thu, 24 Apr 2014 21:55:48 +0000 (UTC) Received: (qmail 2078 invoked by uid 500); 24 Apr 2014 21:55:45 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 1891 invoked by uid 500); 24 Apr 2014 21:55:42 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 1679 invoked by uid 99); 24 Apr 2014 21:55:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 21:55:37 +0000 Date: Thu, 24 Apr 2014 21:55:37 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-6210) Support GETACLSTATUS operation in WebImageViewer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)