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

前端 未结 8 1173
小蘑菇
小蘑菇 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:31

    The -f work me.

    hdfs dfs -copyFromLocal -f [LOCALFILEPATH] [HDFSFILEPAHT]

提交回复
热议问题