I am using
hdfs dfs -put myfile mypath
and for some files I get
put: \'myfile\': File Exists
Just updates to this answer, in Hadoop 3.X the command a bit different
hdfs dfs -put -f /local/to/path hdfs://localhost:9870/users/XXX/folder/folder2