Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1A85D2B6 for ; Thu, 9 Aug 2012 17:52:49 +0000 (UTC) Received: (qmail 70675 invoked by uid 500); 9 Aug 2012 17:52:44 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 70600 invoked by uid 500); 9 Aug 2012 17:52:44 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 70593 invoked by uid 99); 9 Aug 2012 17:52:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 17:52:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justin.woody@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 17:52:39 +0000 Received: by obbtb18 with SMTP id tb18so1191749obb.35 for ; Thu, 09 Aug 2012 10:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=B4HqVGOfgGrhfVlnzDGA1h/tRTBBzSFnch60gDsKQY4=; b=nllP5uWZH5Ny5JRRvBO8o6903PXrPv4v4Q5siw8RpAdb/RyWHpazcSXCly1ZgVaKAs jATrtXjmw78lPCGvUNqJoJhK87q9c1aOy31Z7AdgK1w2z5r4F6DKrs3MU09FdACdpWEY tFbDZcZxIXzESCAlqx0NGz8HI0XrwMtfAdEu8O6iqpcgm6Y1/v0xH5DwykXnToYCGR1j zwyknj74ja5Mr7A+kyvQKclsggMNM9WHX8k7Rt2Zb1Lgi3WRJEEvuTOnEiun8OUJlm9V 1/FkYNm8de4xgzssUgY6VP9t7bZb7a/e6xwSYLwYsA08fU4wWe7JxU9ORiA72YRWqK8F 3rkA== MIME-Version: 1.0 Received: by 10.182.73.65 with SMTP id j1mr173458obv.42.1344534738841; Thu, 09 Aug 2012 10:52:18 -0700 (PDT) Received: by 10.76.23.34 with HTTP; Thu, 9 Aug 2012 10:52:18 -0700 (PDT) In-Reply-To: References: <5023A53D.2020107@ccri.com> Date: Thu, 9 Aug 2012 13:52:18 -0400 Message-ID: Subject: Re: HDFS group permissions From: Justin Woody To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org All, Just to close the thread, the problem was that the user and group were not present on the name node which is why the ACE was thrown. Once he added them to the NN, everything was good. Cheers, Justin On Thu, Aug 9, 2012 at 8:00 AM, Justin Woody wrote: > John, > > Hadoop group permissions follow the BSD model, which is outlined in > the documentation. I think your settings are correct on that > directory, but you may want to check the higher level directories as > well (/path, /path/to, etc). > > Hope that helps. > Justin > > On Thu, Aug 9, 2012 at 7:55 AM, John Armstrong wrote: >> I'm having some trouble with permissions on HDFS. I'm trying to create a >> file in a directory where the user belongs to a group that has write >> permissions, but it doesn't seem to be working. >> >> First, the directory: >> >> myuser$ hadoop fs -ls /path/to/parent/ >> drwxrwxr-x - hdfs myhdfsgroup 0 2012-08-09 07:34 >> /path/to/parent/directory >> >> so mygroup has all permissions on /path/to/parent/directory. Next I check: >> >> myuser$ groups >> myuser [...] myhdfsgroup >> >> so myuser is a member of myhdfsgroup. I should be able to put a file into >> this directory, no? >> >> myuser$ hadoop fs -put testFile.txt /path/to/parent/directory/testfile.txt >> put: org.apache.hadoop.security.AccessControlException: Permission denied: >> user=myuser, access=WRITE, inode="directory":hdfs:myhdfsgroup:rwxrwxr-x >> >> I don't even see a mention of the group in this exception message. Do group >> permissions just not work? And if not, why are they included in the >> documentation? >> >> In case it matters, I'm using Hadoop 0.20.2 plus some patches. >> >> tia