[
https://issues.apache.org/jira/browse/HDFS-6502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yongjun Zhang updated HDFS-6502:
--------------------------------
Description:
In http://hadoop.apache.org/docs/r1.2.1/distcp2.html#UpdateAndOverwrite
The first statement of the "Update and Overwrite" section says:
{quote}
-update is used to copy files from source that don't exist at the target, or
have different contents. -overwrite overwrites target-files even if they exist
at the source, or have the same contents.
{quote}
The "Command Line Options" table says :
{quote}
-overwrite: Overwrite destination
-update: Overwrite if src size different from dst size
{quote}
Based on the implementation, they need to modified to:
The first statement of the "Update and Overwrite" section:
{code}
-update is used to copy files from source that don't exist at the target, or
have different contents. -overwrite overwrites target-files if they exist at
the target.
{code}
The "Command Line Options" table:
{code}
-overwrite: Overwrite destination
-update: Overwrite destination if source and destination have different
contents
{code}
Thanks.
was:
In http://hadoop.apache.org/docs/r1.2.1/distcp2.html#UpdateAndOverwrite
The first statement of the "Update and Overwrite" section says:
{quote}
-update is used to copy files from source that don't exist at the target, or
have different contents. -overwrite overwrites target-files even if they exist
at the source, or have the same contents.
{quote}
The "Command Line Options" table says :
{quote}
-overwrite: Overwrite destination
-update: Overwrite if src size different from dst size
{quote}
Based on the implementation, they need to modified to:
The first statement of the "Update and Overwrite" section:
{code}
-update is used to copy files from source that don't exist at the target, or
have different contents. -overwrite overwrites target-files if they exist at
the target, and even if they have the same contents as the source-files.
{code}
The "Command Line Options" table:
{code}
-overwrite: Overwrite destination
-update: Overwrite destination if source and destination have different
contents
{code}
Thanks.
> incorrect description in distcp2 document
> -----------------------------------------
>
> Key: HDFS-6502
> URL: https://issues.apache.org/jira/browse/HDFS-6502
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: documentation
> Affects Versions: 2.4.0
> Reporter: Yongjun Zhang
>
> In http://hadoop.apache.org/docs/r1.2.1/distcp2.html#UpdateAndOverwrite
> The first statement of the "Update and Overwrite" section says:
> {quote}
> -update is used to copy files from source that don't exist at the target, or
> have different contents. -overwrite overwrites target-files even if they
> exist at the source, or have the same contents.
> {quote}
> The "Command Line Options" table says :
> {quote}
> -overwrite: Overwrite destination
> -update: Overwrite if src size different from dst size
> {quote}
> Based on the implementation, they need to modified to:
> The first statement of the "Update and Overwrite" section:
> {code}
> -update is used to copy files from source that don't exist at the target, or
> have different contents. -overwrite overwrites target-files if they exist at
> the target.
> {code}
> The "Command Line Options" table:
> {code}
> -overwrite: Overwrite destination
> -update: Overwrite destination if source and destination have different
> contents
> {code}
> Thanks.
--
This message was sent by Atlassian JIRA
(v6.2#6252)