On finalize() stage DistCp attempts to updateDestStatus(), which includes calling setTimes(). In HDFS setTimes() is not supported for directories, therefore DistCp fails if there are directories in the tree.
It looks the failure occurs only when there are no files to copy.
- is related to
HDFS-2712 setTimes should support only for files and move the atime field down to iNodeFile.
- Patch Available