Attempting to create a file with spaces in the name through WebHDFS now fails with an IllegalArgumentException while attempting to construct a URI. This had been fixed earlier in HDFS-4944. The failure now is a regression introduced by HDFS-6100.
DataNodeWebHdfsMethods does not failover in HA mode
WebHdfsFileSystem#toUrl does not perform character escaping.
WebHDFS cannot create a file path containing characters that must be URI-encoded, such as space.