Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C096186E3 for ; Fri, 12 Feb 2016 08:16:07 +0000 (UTC) Received: (qmail 64012 invoked by uid 500); 12 Feb 2016 08:16:02 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 63903 invoked by uid 500); 12 Feb 2016 08:16:02 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 63891 invoked by uid 99); 12 Feb 2016 08:16:01 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 08:16:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8A905C1B94 for ; Fri, 12 Feb 2016 08:16:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.605 X-Spam-Level: X-Spam-Status: No, score=0.605 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.095] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id O9AJZoRz8n4S for ; Fri, 12 Feb 2016 08:16:00 +0000 (UTC) Received: from smtp-out.ifsttar.fr (smtp-out.ifsttar.fr [137.121.250.9]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id C25E020655 for ; Fri, 12 Feb 2016 08:15:59 +0000 (UTC) Received: from mail.ifsttar.fr (mail.ifsttar.fr [137.121.250.44]) by smtp-out.ifsttar.fr (Postfix) with ESMTPS id ABBE25FE33 for ; Fri, 12 Feb 2016 09:15:59 +0100 (CET) Received: from mail.ifsttar.fr (localhost.localdomain [127.0.0.1]) by mail.ifsttar.fr (Postfix) with ESMTPS id E6432A248C for ; Fri, 12 Feb 2016 09:15:58 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.ifsttar.fr (Postfix) with ESMTP id D6C3BA248F for ; Fri, 12 Feb 2016 09:15:58 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.ifsttar.fr Received: from mail.ifsttar.fr ([127.0.0.1]) by localhost (mail.ifsttar.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pFZoIW_1WSAE for ; Fri, 12 Feb 2016 09:15:58 +0100 (CET) Received: from [137.121.81.1] (unknown [137.121.81.1]) by mail.ifsttar.fr (Postfix) with ESMTPSA id B2FE7A243A for ; Fri, 12 Feb 2016 09:15:58 +0100 (CET) From: Francis Dupin Subject: Re: hdfs : Change supergroup References: <56B8C63D.8070009@ifsttar.fr> To: "user@hadoop.apache.org" Message-ID: <56BD94BE.4060105@ifsttar.fr> Date: Fri, 12 Feb 2016 09:15:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------080500000303020303090508" --------------080500000303020303090508 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Thank you. I think my problem was here : When a file or directory is created, its owner is the user identity of=20 the client process, and its group is the group of the parent directory=20 (the BSD rule). Le 09/02/2016 04:26, Harsh J a =C3=A9crit : > Changing the supergroup configuration would not affect the existing=20 > group maintained on the file inodes (its persisted since the=20 > beginning, not pulled dynamically from config at every restart). You=20 > will need to manually fs -chgrp those. > > On Mon, Feb 8, 2016 at 10:15 PM Francis Dupin=20 > > wrote: > > Dear all, > > Concern Hadoop 2.6.0 > > When I create a file as superuser, the group owner is 99. > > > But I have created a user:group for the superuser : hadoop:hadoop > (1003) > and added in hdfs-site.xml : > > > > dfs.permissions.supergroup > hadoop > > The name of the group of super-users > > > > Restarted all ... No change : > Files created are owned by hadoop:99 and in the webUI I can read > "hadoop:supergroup" > > > Any idea ? > > Thank you > > > > -------------------------------------------------------------------= -- > To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org > > For additional commands, e-mail: user-help@hadoop.apache.org > > --=20 ------------------------- Francis Dupin Bureau C106 tel : 01 81 66 83 82 IFSTTAR COSYS / GRETTIA B=C3=A2timent : Bienven=C3=BCe 14-20 Boulevard Newton - Champs-sur-Marne - 77447 Marne-la-Vall=C3=A9e --------------080500000303020303090508 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you.

I think my problem was here :

When a file or directory is created, its owner is the user identity of the client process, and its group is the group of the parent directory (the BSD rule).



Le 09/02/2016 04:26, Harsh J a =C3=A9c= rit=C2=A0:
Changing the supergroup configuration would not affect the existing group maintained on the file inodes (its persisted since the beginning, not pulled dynamically from config at every restart). You will need to manually fs -chgrp those.

On Mon, Feb 8, 2016 at 10:15 PM Francis Dupin <francis.dupin@ifstta= r.fr> wrote:
Dear all,

Concern Hadoop 2.6.0

When I create a file as superuser, the group owner is 99.


But I have created a user:group for the superuser : hadoop:hadoop (1003)
and added in hdfs-site.xml :


<property>
<name>dfs.permissions.supergroup</name>
<value>hadoop</value>
<description>
The name of the group of super-users
</description>
</property>

Restarted all ... No change :
Files created are owned by hadoop:99 and in the webUI I can read
"hadoop:supergroup"


Any idea ?

Thank you



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org
For additional commands, e-mail: user-help@hadoop.apache.org


--=20
-------------------------

Francis Dupin
Bureau C106
tel : 01 81 66 83 82=20

IFSTTAR
COSYS / GRETTIA
B=C3=A2timent : Bienven=C3=BCe
14-20 Boulevard Newton - Champs-sur-Marne -=20
77447 Marne-la-Vall=C3=A9e

--------------080500000303020303090508--