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 DB376DD50 for ; Thu, 9 Aug 2012 12:01:23 +0000 (UTC) Received: (qmail 77425 invoked by uid 500); 9 Aug 2012 12:01:19 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 77332 invoked by uid 500); 9 Aug 2012 12:01:19 -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 77325 invoked by uid 99); 9 Aug 2012 12:01:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2012 12:01:18 +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 (nike.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 12:01:12 +0000 Received: by obbtb18 with SMTP id tb18so663780obb.35 for ; Thu, 09 Aug 2012 05:00:51 -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=oJJQy/x+PDsQQExtkRLKjtPiehm0LGonhmBTep4MqJ8=; b=YAcPP7YcpNuJCzVpNpP8E/IhvqdlckmQPIAa8DIQp1htJJJf4i09DI+AsHY9qrUN+K eLzps0uON2pb49++ub77VCGW9npgyrgdEeuII7eF6H7GIkFfoO9pwIOVcDsLxXbE4ZkS 8CAgvHNF8KqVTpB3UN+K7qZK/NeJn5EdkDwvAPGya51BgHKcqFM9D/aUZZNlAd5CWMMD fM+hYvB6R3ej7MHlRucvArKQT1n1k8fSOFQG9LVf178wlivUHoPvEFUsD72ssFklJulH 34Ztb7tYFtWeRjhYfeUpW3HSxPYSfV1TA/GOxu1oIG08uHosktbAPxhgg9bGlkzHJLJg x4dw== MIME-Version: 1.0 Received: by 10.182.53.103 with SMTP id a7mr35350853obp.3.1344513651354; Thu, 09 Aug 2012 05:00:51 -0700 (PDT) Received: by 10.76.23.34 with HTTP; Thu, 9 Aug 2012 05:00:51 -0700 (PDT) In-Reply-To: <5023A53D.2020107@ccri.com> References: <5023A53D.2020107@ccri.com> Date: Thu, 9 Aug 2012 08:00:51 -0400 Message-ID: Subject: Re: HDFS group permissions From: Justin Woody To: user@hadoop.apache.org, john.armstrong@ccri.com Content-Type: text/plain; charset=ISO-8859-1 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