I use
hdfs dfs -put myfile mypath
and for some files I get
put: 'myfile': File Exists
Thanks!
So a file named "myfile" already exists in hdf. You cannot have multiple files with the same name in hdfs
You can overwrite it with hadoop fs -put -f /path_to_local /path_to_hdfs
hadoop fs -put -f /path_to_local /path_to_hdfs
You can overwrite a file in hdfs with the -f command. for instance
hadoop fs -put -f <localfile> <hdfsDir>
OR
hadoop fs -copyFromLocal -f <localfile> <hdfsDir>
It worked for me. However, the -f command will not work with get or copyToLocal. check this question