[ 
https://issues.apache.org/jira/browse/MAPREDUCE-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14534166#comment-14534166
 ] 

Ameya Sakhalkar commented on MAPREDUCE-4070:
--------------------------------------------

Tried to reproduce with version 2.5.0. Deleted /tmp and restarted 
HistoryServer. It created /tmp with permissions 770:
drwxrwx---   - hadoop supergroup          0 2015-05-08 14:17 /tmp


> JobHistoryServer creates /tmp directory with restrictive permissions if the 
> directory doesn't already exist.
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-4070
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4070
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: mrv2
>    Affects Versions: 0.23.1
>            Reporter: Ahmed Radwan
>            Assignee: Ahmed Radwan
>              Labels: BB2015-05-TBR
>         Attachments: MAPREDUCE-4070.patch
>
>
> Starting up the MapReduce JobhHistoryServer service after a clean install 
> appears to automatically create the /tmp directory on HDFS. However, it is 
> created with 750 permission.
> Attempting to run MR jobs by other users results in the following permissions 
> exception:
> {code}
> org.apache.hadoop.security.AccessControlException: Permission denied: 
> user=cloudera, access=EXECUTE, inode="/tmp":yarn:supergroup:drwxr-x---
> at 
> org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:205)
> ..
> {code}



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

Reply via email to