Is there any way we can overwrite existing files, while coping from HDFS using:
HDFS
hadoop fs -copyToLocal
You can first delete, then write.
hadoop fs -rmr removes everything under given path in hdfs including the path itself
hadoop fs -rmr
rm -rf removes in local file system.
rm -rf
Make sure that there is no other file in the directory.