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 "Giridharan Kesavan (Updated) (JIRA)" <ji...@apache.org> on 2011/12/06 03:17:40 UTC
[jira] [Updated] (HADOOP-7885) fix datanode dir permission in
hadoop-conf-setup.sh
[ https://issues.apache.org/jira/browse/HADOOP-7885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Giridharan Kesavan updated HADOOP-7885:
---------------------------------------
Attachment: HADOOP-7885.PATCH
this patch removes the mkdir -p , chmod and chown commands on the datanode dir from the hadoop-setup-conf.sh script and letting the dn to create the datanode dir
> fix datanode dir permission in hadoop-conf-setup.sh
> ---------------------------------------------------
>
> Key: HADOOP-7885
> URL: https://issues.apache.org/jira/browse/HADOOP-7885
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1.0.0, 1.1.0
> Reporter: Giridharan Kesavan
> Assignee: Giridharan Kesavan
> Attachments: HADOOP-7885.PATCH
>
>
> datanode dir are created by the hadoop setup script and permission is set to 700 by default. When the dfs.datanode.data.dir.perm is set to a diff permission in the hdfs-site then the dn fails with the the following error;
> 2011-12-05 23:50:53,579 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid directory in dfs.data.dir: Incorrect permission for /var/lib/hadoop/hdfs/datanode, expected: rwxr-x---, while actual: rwx------
> 2011-12-05 23:50:53,581 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid directory in dfs.data.dir: Incorrect permission for /var/lib/hadoop/hdfs/datanode1, expected: rwxr-x---, while actual: rwx------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira