hdfs dfs -put with overwrite?

前端 未结 4 1198
鱼传尺愫
鱼传尺愫 2020-12-29 19:56

I am using

hdfs dfs -put myfile mypath

and for some files I get

put: \'myfile\': File Exists
  • does
4条回答
  •  悲哀的现实
    2020-12-29 20:15

    Just updates to this answer, in Hadoop 3.X the command a bit different

    hdfs dfs -put -f /local/to/path hdfs://localhost:9870/users/XXX/folder/folder2
    

提交回复
热议问题