hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15170) Add symlink support to FileUtil#unTarUsingJava
Date Thu, 01 Feb 2018 18:14:00 GMT

    [ 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message