[ https://issues.apache.org/jira/browse/MAPREDUCE-7375?focusedWorklogId=762710&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762710 ]
ASF GitHub Bot logged work on MAPREDUCE-7375: --------------------------------------------- Author: ASF GitHub Bot Created on: 27/Apr/22 05:07 Start Date: 27/Apr/22 05:07 Worklog Time Spent: 10m Work Description: skysiders opened a new pull request, #4236: URL: https://github.com/apache/hadoop/pull/4236 <!-- Thanks for sending a pull request! 1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute 2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'. --> ### Description of PR JobSubmissionFiles provide getStagingDir to get Staging Directory.If stagingArea missing, method will create new directory with this. fs.mkdirs(stagingArea, new FsPermission(JOB_DIR_PERMISSION)); It seems create new directory with JOB_DIR_PERMISSION,but this permission will be apply by umask.If umask too strict , this permission may be 000(if umask is 700).So we should change permission after create. ### How was this patch tested? ### For code changes: - [ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')? - [ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation? - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)? - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files? Issue Time Tracking ------------------- Worklog Id: (was: 762710) Remaining Estimate: 0h Time Spent: 10m > JobSubmissionFiles don't set right permission after mkdirs > ---------------------------------------------------------- > > Key: MAPREDUCE-7375 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-7375 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2 > Affects Versions: 3.3.2 > Reporter: Zhang Dongsheng > Priority: Major > Attachments: MAPREDUCE-7375.patch > > Time Spent: 10m > Remaining Estimate: 0h > > JobSubmissionFiles provide getStagingDir to get Staging Directory.If > stagingArea missing, method will create new directory with this. > {quote}fs.mkdirs(stagingArea, new FsPermission(JOB_DIR_PERMISSION));{quote} > It seems create new directory with JOB_DIR_PERMISSION,but this permission > will be apply by umask.If umask too strict , this permission may be 000(if > umask is 700).So we should change permission after create. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org