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 6CBD1EA75 for ; Fri, 15 Feb 2013 05:20:59 +0000 (UTC) Received: (qmail 57406 invoked by uid 500); 15 Feb 2013 05:20:54 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 57016 invoked by uid 500); 15 Feb 2013 05:20:52 -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 56992 invoked by uid 99); 15 Feb 2013 05:20:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 05:20:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gdsayshi@gmail.com designates 209.85.217.169 as permitted sender) Received: from [209.85.217.169] (HELO mail-lb0-f169.google.com) (209.85.217.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 05:20:43 +0000 Received: by mail-lb0-f169.google.com with SMTP id m4so2341064lbo.28 for ; Thu, 14 Feb 2013 21:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=2PoGajidrsfVHruUyWWT9AogvNPt2Dzma8QpqEN758E=; b=NvZcoew2FgZXJew94WlM/a2sUKmfr7ZNcYGGLQynI12eZZQxjwnTBrWW10icJjZtzt GjvUtwpRD8m7fwnvhLq0QtGe4udBzyjkfuNpOtkSYE0VTSdoH0RLtTgUwi/LPfPtP9aw 7FH2EXgJ6YKbKBeznVQlQSK145GDPHmCFS9Ji/MyM8S57dxC0UzK+Bux9+Wlwv0TtEQE aNZXonD+LmjcYwj1YybfwTznCRqs3amRszoZNKywC7xWzEB7yB0gReOsKoX/QPkgmM+H UHJ1SVaJuFcZt6bmD//AWRqDUMLeFdrcR3MZRNNIc/Qo9uJiSBj9nyrZmQQrTxwG8ZtW /JfQ== MIME-Version: 1.0 X-Received: by 10.152.122.100 with SMTP id lr4mr1022722lab.28.1360905622541; Thu, 14 Feb 2013 21:20:22 -0800 (PST) Received: by 10.114.94.193 with HTTP; Thu, 14 Feb 2013 21:20:22 -0800 (PST) In-Reply-To: References: Date: Fri, 15 Feb 2013 10:50:22 +0530 Message-ID: Subject: Re: How to add users in supergroup? From: Gaurav Dasgupta To: user@hadoop.apache.org, chris@embree.us Content-Type: multipart/alternative; boundary=f46d042ef66134544604d5bc8814 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042ef66134544604d5bc8814 Content-Type: text/plain; charset=ISO-8859-1 OK. Thanks a lot. Understood now. On Thu, Feb 14, 2013 at 10:25 PM, Chris Embree wrote: > Check your HDFS config file for the groupname you used as HDFS supergroup. > We used hdfs as the group name in our case. > > Then just groupadd hdfs (see man groupadd for additional options) > Then, when you create users, add them to that group. > > useradd -G hdfs newuser > > This is more Linux admin than Hadoop centric. > > > On Thu, Feb 14, 2013 at 9:51 AM, Gaurav Dasgupta wrote: > >> Hi All, >> >> I have Hadoop installed in my CentOS Linux cluster. I am trying to >> understand that what are the various ways I can set user level and group >> level permissions for read/write in HDFS. >> I have set 770 permission to the some HDFS directory which has the >> owner:group = hadoop:supergroup. >> >> My intension is now to add all those users in "supergroup" whom I want to >> access the HDFS directory. But, I could not find supergroup in "/etc/group" >> . >> What is "supergroup"? How can I add users to "supergroup"? >> >> Thanks, >> Gaurav >> > > --f46d042ef66134544604d5bc8814 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK. Thanks a lot. Understood now.

On Thu, Feb 14, 2013 at 10:25 PM, Chris Embree <= span dir=3D"ltr"><cembree@gmail.com> wrote:
Check your HDFS config file for the g= roupname you used as HDFS supergroup. =A0We used hdfs as the group name in = our case.=20

Then just groupadd hdfs =A0(see man groupadd for additional options)
Then, when you create users, add them to that group.

useradd -G hdfs newuser

This is more Linux admin than Hadoop centric.=20


On Thu, Feb 14, 2013 at 9:51 AM, Gaurav Dasgupta= <gdsayshi@gmail.com> wrote:
Hi All,
=A0
I have=A0Hadoop installed=A0in my CentOS Linux cluster. I am trying to= understand that what are the various ways I can set user level and group l= evel permissions for read/write in HDFS.
I have set 770 permission to the=A0some HDFS directory which has the o= wner:group =3D hadoop:supergroup.
=A0
My intension is now to add all those users in "supergroup" w= hom I want to access the HDFS directory.=A0But, I could not find supergroup= in "/etc/group"
.
What is "supergroup"? How can I add users to "supergrou= p"?
=A0
Thanks,
Gaurav


--f46d042ef66134544604d5bc8814--