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 406E218B34 for ; Mon, 18 Jan 2016 09:13:47 +0000 (UTC) Received: (qmail 5221 invoked by uid 500); 18 Jan 2016 09:13:42 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 5118 invoked by uid 500); 18 Jan 2016 09:13:42 -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 5107 invoked by uid 99); 18 Jan 2016 09:13:42 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2016 09:13:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CC3491A052C for ; Mon, 18 Jan 2016 09:13:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id O4Zfidr2TiQ9 for ; Mon, 18 Jan 2016 09:13:32 +0000 (UTC) Received: from smtp81.ord1c.emailsrvr.com (smtp81.ord1c.emailsrvr.com [108.166.43.81]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 3ABEC212B4 for ; Mon, 18 Jan 2016 09:13:32 +0000 (UTC) Received: from smtp3.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp3.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id A394318020F; Mon, 18 Jan 2016 04:13:31 -0500 (EST) X-Auth-ID: mohit.kaushik@orkash.com Received: by smtp3.relay.ord1c.emailsrvr.com (Authenticated sender: mohit.kaushik-AT-orkash.com) with ESMTPSA id A60CE180171 for ; Mon, 18 Jan 2016 04:13:30 -0500 (EST) X-Sender-Id: mohit.kaushik@orkash.com Received: from [192.168.0.121] ([UNAVAILABLE]. [14.141.49.198]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.5.4); Mon, 18 Jan 2016 04:13:31 -0500 Message-ID: <569CACD5.5090400@orkash.com> Date: Mon, 18 Jan 2016 14:43:57 +0530 From: "mohit.kaushik" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: user@hadoop.apache.org Subject: Re: Sharing single hadoop installation for multiple users on cluster References: <569C73A2.80002@orkash.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030905070303040408090302" --------------030905070303040408090302 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit If you started Hadoop daemons with hduser, it will not be shown for the user foo(or any other user) as hadoop daemons are just java processes. But still you can run your jobs with any other user. Ensure that the user foo has access to hadoop directories. And you also don't have to create a directory in hdfs for the user. I hope this resolves your problem. hduser $ start-all.sh hduser $ su - other other $ /home/hduser/hadoop203/bin/hadoop jar /home/hduser/hadoop203/hadoop-examples*.jar pi 1 1 -Mohit Kasuhik On 01/18/2016 11:56 AM, Ravikant Dindokar wrote: > Hi Mohit, > > Thanks for your reply. Let me elaborate my problem in detail. > I have installed hadoop with user called 'hduser' and the HADOOP_HOME > points to one folder in hduser's home directory . Now I have added > another user foo in the cluster. I modified the access permissions for > following directories to 777: > 1. Hadoop installation directory ( pointed by HADOOP_HOME) > 2. dfs.datanode.data.dir > 3. dfs.namenode.name.dir > 4. hadoop.tmp.dir > > I have also created directory /user/foo inside hdfs > > After starting hdfs and yarn daemons, I am not able to view these > processes in foo user and so not able to submit jobs. > > Can you point out what I am missing here? > > Thanks > Ravikant > > On Mon, Jan 18, 2016 at 10:39 AM, mohit.kaushik > > wrote: > > Hadoop uses the linux system users. I think, You don't have to > make any changes, Just create a new user in your system and give > it access to hadoop ie. provide permissions to hadoop installation > and data directories. > > -Mohit Kaushik > > > On 01/17/2016 04:06 PM, Ravikant Dindokar wrote: >> Hi Hadoop user, >> >> I have hadoop-2.6 installed on my cluster with 11 nodes. I have >> installed it under one specific user. Now I want to allow other >> users on the cluster to share the same hadoop installation. What >> changes I need to do in order to allow access to other users? >> >> Thanks >> Ravikant > > --------------030905070303040408090302 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
If you started Hadoop daemons with hduser, it will not be shown for the user foo(or any other user) as hadoop daemons are just java processes. But still you can run your jobs with any other user. Ensure that the user foo has access to hadoop directories. And you also don't have to create a directory in hdfs for the user. I hope this resolves your problem. 
hduser $ start-all.sh
hduser $ su - other
other $ /home/hduser/hadoop203/bin/hadoop jar
/home/hduser/hadoop203/hadoop-examples*.jar pi 1 1
-Mohit Kasuhik


On 01/18/2016 11:56 AM, Ravikant Dindokar wrote:
Hi Mohit,

Thanks for your reply.  Let me elaborate my problem in detail.
I have installed hadoop with user called 'hduser' and the HADOOP_HOME points to one folder in hduser's home directory . Now I have added another user foo in the cluster. I modified the access permissions for following directories to 777:
1. Hadoop installation directory ( pointed by  HADOOP_HOME)
2. dfs.datanode.data.dir
3. dfs.namenode.name.dir
4. hadoop.tmp.dir

I have also created directory /user/foo inside hdfs

After starting hdfs and yarn daemons, I am not able to view these processes in foo user and so not able to submit jobs.

Can you point out what I am missing here?

Thanks
Ravikant

On Mon, Jan 18, 2016 at 10:39 AM, mohit.kaushik <mohit.kaushik@orkash.com> wrote:
Hadoop uses the linux system users. I think, You don't have to make any changes, Just create a new user in your system and give it access to hadoop ie. provide permissions to hadoop installation and data directories.

-Mohit Kaushik


On 01/17/2016 04:06 PM, Ravikant Dindokar wrote:
Hi Hadoop user,

I have hadoop-2.6 installed on my cluster with 11 nodes. I have installed it under one specific user. Now I want  to allow other users on the cluster to share the same hadoop installation. What changes I need to do in order to allow access to other users?

Thanks
Ravikant

--------------030905070303040408090302--