I uploaded a directory to hadoop cluster that is having comma and space characters ", " in its name like "MyDir, Name" when I am trying to delete this Directory by using rmr hadoop shell command as following:
hdfs dfs -rm -r hdfs://host:port/Navi/MyDir, Name
I'm getting the following messages rmr: cannot remove hdfs://host:port/Navi/MyDir,: No such file or directory. rmr: cannot remove Name: No such file or directory.
However I have successfully deleted other Directories from the same location, using the same command i.e.
hdfs dfs -rm -r hdfs://host:port/dir_path
Any solution to delete such path with space characters.
Have you tried :
hadoop dfs -rmr hdfs://host:port/Navi/MyDir\,\ Name?