[
https://issues.apache.org/jira/browse/HADOOP-19307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18021521#comment-18021521
]
ASF GitHub Bot commented on HADOOP-19307:
-----------------------------------------
github-actions[bot] commented on PR #7111:
URL: https://github.com/apache/hadoop/pull/7111#issuecomment-3314278378
We're closing this stale PR because it has been open for 100 days with no
activity. This isn't a judgement on the merit of the PR in any way. It's just a
way of keeping the PR queue manageable.
If you feel like this was a mistake, or you would like to continue working
on it, please feel free to re-open it and ask for a committer to remove the
stale tag and review again.
Thanks all for your contribution.
> Add option to add parent directory of source directories to target directories
> ------------------------------------------------------------------------------
>
> Key: HADOOP-19307
> URL: https://issues.apache.org/jira/browse/HADOOP-19307
> Project: Hadoop Common
> Issue Type: New Feature
> Components: tools/distcp
> Affects Versions: 3.0.0
> Environment: hadoop 3.3.1
> Reporter: Authur Wang
> Priority: Major
> Labels: pull-request-available
>
> Currently, when we execute the Hadoop distcp with -update -delete src1/*
> src2/* dest command to keep the source and target directories exactly the
> same。 When either -update or -overwrite is specified, the *contents* of the
> source-directories are copied to target, and not the source directories
> themselves.
> Consider a copy from /source/first/ and /source/second/ to /target/, where
> the source paths have the following contents:
> hdfs://nn1:8020/source/first/1
> hdfs://nn1:8020/source/first/2
> hdfs://nn1:8020/source/second/10
> hdfs://nn1:8020/source/second/20
> distcp2 -update hdfs://nn1:8020/source/first hdfs://nn1:8020/source/second
> hdfs://nn2:8020/target
> would yield the following contents in /target:
> hdfs://nn2:8020/target/1
> hdfs://nn2:8020/target/2
> hdfs://nn2:8020/target/10
> hdfs://nn2:8020/target/20
>
> But, sometimes, we need to preserve parent directories like this:
> hdfs://nn1:8020/target/first/1
> hdfs://nn1:8020/target/first/2
> hdfs://nn1:8020/target/second/10
> hdfs://nn1:8020/target/second/20
>
> So, should we introduce an option -preserveParentDir to keep the parent
> directories to be copied with -update or -overwrite ?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]