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

Raghu Angadi commented on HADOOP-5826:
--------------------------------------


That seems to be doable by user of distcp like :
hadoop fs -mkdir dest:/d/a/b (copying properties of a and b from source, if 
possible)
hadoop distcp src:/a/b/c dest:/d/a/b

If we want to add this feature, I think it is better not to use '-p' for this. 
'-p' by convention implies preserving properties of each file.. it would be 
confusing if it also created these paths.



> distcp could have an option to preserve the full source path
> ------------------------------------------------------------
>
>                 Key: HADOOP-5826
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5826
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: tools/distcp
>            Reporter: Rodrigo Schmidt
>            Assignee: Rodrigo Schmidt
>
> It would be helpful to have an option that preserves the full source path 
> when copying files from one location to another. This is specially important 
> when archiving/moving files from one cluster to another one.

-- 
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