[ https://issues.apache.org/jira/browse/HADOOP-8847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464823#comment-13464823 ]
Robert Joseph Evans commented on HADOOP-8847: --------------------------------------------- bq. tar perms are only going to matter in Unix-land, so perhaps the strategy here is to make the java untar the default on windows, but not the default on other platforms. I am fine with that. Even setting the permissions though File.setExecutable and File.setWritable should be good enough on the user and application cache. It really only starts to matter for the public cache. This is because the Java permissions only impact the user permissions, and not the group or world permissions. In the public cache a different user will be reading the files from the one that wrote them, in all of the others it should be the exact same user. > Change untar to use Java API instead of spawning tar process > ------------------------------------------------------------ > > Key: HADOOP-8847 > URL: https://issues.apache.org/jira/browse/HADOOP-8847 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Bikas Saha > Assignee: Bikas Saha > Attachments: HADOOP-8847.branch-1-win.1.patch, test-untar.tar, > test-untar.tgz > > > Currently FileUtil.unTar() spawns tar utility to do the work. Tar may not be > present on all platforms by default eg. Windows. So changing this to use JAVA > API's would help make it more cross-platform. FileUtil.unZip() uses the same > approach. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira