Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1, 2.4.0
Description
In http://hadoop.apache.org/docs/r1.2.1/distcp2.html#UpdateAndOverwrite
The first statement of the "Update and Overwrite" section says:
-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.
The "Command Line Options" table says :
-overwrite: Overwrite destination
-update: Overwrite if src size different from dst size
Based on the implementation, making the following modification would be more accurate:
The first statement of the "Update and Overwrite" section:
-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.
The "Command Line Options" table:
-overwrite: Overwrite destination
-update: Overwrite destination if source and destination have different contents
Thanks.