hdfs dfs -put with overwrite?

前端 未结 4 1082
鱼传尺愫
鱼传尺愫 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:33

    put: 'myfile': File Exists

    Means,the file named "myfile" already exists in hdfs. You cannot have multiple files of the same name in hdfs

    You can overwrite it using hadoop fs -put -f /path_to_local /path_to_hdfs

提交回复
热议问题