我在用
hdfs dfs -put myfile mypath
Run Code Online (Sandbox Code Playgroud)
对于我得到的一些文件
put: 'myfile': File Exists
Run Code Online (Sandbox Code Playgroud)
谢谢!
sal*_*nbw 37
您可以使用-f命令在hdfs中覆盖您的文件.例如
hadoop fs -put -f <localfile> <hdfsDir>
Run Code Online (Sandbox Code Playgroud)
要么
hadoop fs -copyFromLocal -f <localfile> <hdfsDir>
Run Code Online (Sandbox Code Playgroud)
它对我来说很好.但是-f命令在get或copyToLocal命令的情况下不起作用.检查这个问题
Sum*_*mit 34
put: 'myfile': File Exists
意味着,名为"myfile"的文件已存在于hdfs中.您不能在hdfs中拥有多个同名文件
您可以使用覆盖它 hadoop fs -put -f /path_to_local /path_to_hdfs
| 归档时间: |
|
| 查看次数: |
35779 次 |
| 最近记录: |