How to overwrite the existing files using hadoop fs -copyToLocal command

前端 未结 8 1170
小蘑菇
小蘑菇 2021-02-01 13:08

Is there any way we can overwrite existing files, while coping from HDFS using:

hadoop fs -copyToLocal  
         


        
8条回答
  •  攒了一身酷
    2021-02-01 13:36

    You could try this :

    bin/hadoop fs -rm /path_of_the_file | grep "0" | bin/hadoop fs -put ~/input_path /output_path
    

提交回复
热议问题