[ https://issues.apache.org/jira/browse/HADOOP-5826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721500#action_12721500 ]
Rodrigo Schmidt commented on HADOOP-5826: ----------------------------------------- There are already two tests and two error messages that cover this case: - If basedir is not a prefix of the source (which will probably happen if it doesn't exist), it'll print: "Basedir [dir] is not a prefix of source path [src]" - If basedir is a prefix but is not a directory, it'll print: "Basedir [dir] is not a directory" Adding a new error message for the case where the directory doesn't exist looks like a redundant test given the first error case. > 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 > Fix For: 0.21.0 > > Attachments: HADOOP-5826.2.patch, HADOOP-5826.3.patch, > HADOOP-5826.patch > > > 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.