Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.2.1
-
None
-
None
-
None
Description
Found this issue while testing HDFS-6141. WebHdfsFileSystem#toUrl does not perform character escaping for rename and causes the operation to fail.
This bug does not exist on 2.x
For e.g:
$ hadoop dfs -rmr 'webhdfs://<namenode>:<port>/tmp/test dirname with spaces'
Problem with Trash.Unexpected HTTP response: code=400 != 200, op=RENAME, message=Bad Request. Consider using -skipTrash option
rmr: Failed to move to trash: webhdfs://<namenode>:<port>/tmp/test dirname with spaces