You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2014/09/16 20:35:34 UTC

[jira] [Updated] (HADOOP-6590) Add a username check in hadoop-daemon.sh

     [ https://issues.apache.org/jira/browse/HADOOP-6590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated HADOOP-6590:
-------------------------------------
    Attachment: HADOOP-6590-02.patch

This patch will allow an admin to define HADOOP_command_USER to the user that should only be allowed to execute that command.

For example, HADOOP_namenode_USER=hdfs will prevent the namenode from running by anyone but the hdfs user.

> Add a username check in hadoop-daemon.sh
> ----------------------------------------
>
>                 Key: HADOOP-6590
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6590
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.22.0
>            Reporter: Scott Chen
>            Assignee: Scott Chen
>            Priority: Minor
>         Attachments: HADOOP-6590-02.patch, HADOOP-6590-2010-07-12.txt, HADOOP-6590.patch
>
>
> We experienced a case that sometimes we accidentally started HDFS or MAPREDUCE with root user. Then the directory permission will be modified and we have to chown them. It will be nice if there can be a username checking in the hadoop-daemon.sh script so that we always start with the desired username.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)