[
https://issues.apache.org/jira/browse/HADOOP-15170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16349030#comment-16349030
]
Ajay Kumar commented on HADOOP-15170:
-------------------------------------
[~jlowe], thanks for testing, updated patch to make symlink as-is.
{code}
$ mkdir testdir
$ cd testdir/
$ ln -s a b
$ ls -ltr
total 0
lrwxr-xr-x 1 user group 1 Feb 1 09:33 b -> a
$ ln -s /tmp/foo c
$ ls -ltr
total 0
lrwxr-xr-x 1 user group 1 Feb 1 09:33 b -> a
lrwxr-xr-x 1 user group 8 Feb 1 09:34 c -> /tmp/foo
$ cd ..
$ tar zcf testdir.tgz testdir
$ ls -ltr testdir2
total 0
drwxr-xr-x 4 user group 128 Feb 1 09:36 testdir
$ ls -ltr testdir2/testdir/
total 0
lrwxr-xr-x 1 user group 8 Feb 1 09:36 c -> /tmp/foo
lrwxr-xr-x 1 user group 1 Feb 1 09:36 b -> a
{code}
> Add symlink support to FileUtil#unTarUsingJava
> -----------------------------------------------
>
> Key: HADOOP-15170
> URL: https://issues.apache.org/jira/browse/HADOOP-15170
> Project: Hadoop Common
> Issue Type: Improvement
> Components: util
> Reporter: Jason Lowe
> Assignee: Ajay Kumar
> Priority: Minor
> Attachments: HADOOP-15170.001.patch, HADOOP-15170.002.patch,
> HADOOP-15170.003.patch, HADOOP-15170.004.patch
>
>
> Now that JDK7 or later is required, we can leverage
> java.nio.Files.createSymbolicLink in FileUtil.unTarUsingJava to support
> archives that contain symbolic links.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]