hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bikas Saha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8847) Change untar to use Java API instead of spawning tar process
Date Thu, 04 Oct 2012 05:31:08 GMT

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

Bikas Saha commented on HADOOP-8847:
------------------------------------

I am going to restore old behavior for non Windows case. I dont see much value in re-implementing
all idiosyncrasies and features of unix tar in Java. The Java implementation was to give a
good enough implementation that meets the use case of users submitting tar archives for distributed
cache files. There are some tests which validate this functionality and these were failing
on Windows. Most likely users will submit simple tar files to distributed cache. Windows users
will likely submit zip files and not tar files since tar is not native to windows. Hence I
will re-submit the patch which uses Java code only on Windows.
                
> 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

Mime
View raw message