I am using
hdfs dfs -put myfile mypath
and for some files I get
put: \'myfile\': File Exists
You can overwrite your file in hdfs using -f command.For example
hadoop fs -put -f
OR
hadoop fs -copyFromLocal -f
It worked fine for me. However -f command won't work in case of get or copyToLocal command. check this question