[ 
https://issues.apache.org/jira/browse/HADOOP-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985485#action_12985485
 ] 

Konstantin Shvachko commented on HADOOP-7110:
---------------------------------------------

JNI should be used as the last resort, imo.
And it seems this is the case in this situation. I don't see other reasonable 
way implementing permissions setting.
+1

> Implement chmod with JNI
> ------------------------
>
>                 Key: HADOOP-7110
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7110
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: io, native
>    Affects Versions: 0.22.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>             Fix For: 0.22.0
>
>         Attachments: hadoop-7110.txt
>
>
> MapReduce is currently using a race-prone workaround to approximate chmod() 
> because forking chmod is too expensive. This race is causing build failures 
> (and probably task failures too). We should implement chmod in the NativeIO 
> library so we can have good performance (ie not fork) and still not be prone 
> to races.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to