gpt4 book ai didi

hadoop - hdfs dfs - 覆盖?

转载 作者:可可西里 更新时间:2023-11-01 14:07:42 32 4
gpt4 key购买 nike

我正在使用

hdfs dfs -put myfile mypath

对于我得到的一些文件

put: 'myfile': File Exists
  • 这是否意味着存在同名文件或已经存在完全相同的文件(大小、内容)?
  • 如何在此处指定 -overwrite 选项?

谢谢!

最佳答案

put: 'myfile': 文件存在

意思是,名为“myfile”的文件已经存在于hdfs中。 hdfs 中不能有多个同名文件

您可以使用 hadoop fs -put -f/path_to_local/path_to_hdfs 覆盖它

关于hadoop - hdfs dfs - 覆盖?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36816526/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com