Is there any way we can overwrite existing files, while coping from HDFS using:
HDFS
hadoop fs -copyToLocal
You could try this :
bin/hadoop fs -rm /path_of_the_file | grep "0" | bin/hadoop fs -put ~/input_path /output_path