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

Rodrigo Schmidt commented on HADOOP-5826:
-----------------------------------------

Another possibility is something like a basedir (-b) option that tells distcp 
what is the prefix of the source path that should be used as the base directory 
for copying.

distcp -b /a /a/b/c /d

would create file /d/b/c

distcp -b / /a/b/c /d

would creaet file /d/a/b/c

this is more general than the original proposition.

> 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