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 71824EF8B for ; Tue, 19 Feb 2013 20:05:13 +0000 (UTC) Received: (qmail 13334 invoked by uid 500); 19 Feb 2013 20:05:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 13301 invoked by uid 500); 19 Feb 2013 20:05:13 -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 13292 invoked by uid 99); 19 Feb 2013 20:05:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 20:05:13 +0000 Date: Tue, 19 Feb 2013 20:05:13 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4506) HDFS short circuit fails non-transparently when user does not have unix permissions 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-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581579#comment-13581579 ] Enis Soztutar commented on HDFS-4506: ------------------------------------- I've tested this with hadoop-1.1.2-rc5. To repro, you can do smt like this: - start hadoop with user hadoop. configure short circuit reads for user hbase. {code} dfs.block.local-path-access.user hbase {code} - configure hbase to use shortcircuit. {code} dfs.client.read.shortcircuit true {code} - ensure that user "hbase" does not have access perms to local block files. {code} $ su - hadoop $ chmod 700 -R ${dfs.data.dir} $ su - hbase $ ls -la /tmp/hadoop-enis/dfs/data/current/ ls: cannot open directory /tmp/hadoop-enis/dfs/data/current/: Permission denied {code} - start hbase in local mode. I think from inspecting the logs, the problem is that we catch the IOE in DFSClient.blockSeekTo(), but not in fetchBlockByteRange(). When we get ACE, we disable shortCircuit reads, but not on IOE, which also causes us to retry again and again to read locally. > HDFS short circuit fails non-transparently when user does not have unix permissions > ----------------------------------------------------------------------------------- > > Key: HDFS-4506 > URL: https://issues.apache.org/jira/browse/HDFS-4506 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 1.1.1 > Reporter: Enis Soztutar > > We found a case, where if the short circuit user name is configured correctly, but the user does not have enough permissions in unix, DFS operations fails with IOException, rather than silently failing over through datanode. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira