Index: shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java =================================================================== --- shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java (revision 1405070) +++ shims/src/common/java/org/apache/hadoop/fs/ProxyFileSystem.java (working copy) @@ -47,22 +47,12 @@ private Path swizzleParamPath(Path p) { String pathUriString = p.toUri().toString(); - if (Shell.WINDOWS) { - // Some of the file paths (Files with partition option) in HDFS '=' - // but Windows file path doesn't support '=' so replace it with special string. - pathUriString = pathUriString.replaceAll("=", "------"); - } URI newPathUri = URI.create(pathUriString); return new Path (realScheme, realAuthority, newPathUri.getPath()); } private Path swizzleReturnPath(Path p) { String pathUriString = p.toUri().toString(); - if (Shell.WINDOWS) { - // Revert back the special string '------' with '=' when we do the reverse conversion - // from Windows path to HDFS - pathUriString = pathUriString.replaceAll("------", "="); - } URI newPathUri = URI.create(pathUriString); return new Path (myScheme, myAuthority, newPathUri.getPath()); } Index: shims/src/common/java/org/apache/hadoop/fs/ProxyLocalFileSystem.java =================================================================== --- shims/src/common/java/org/apache/hadoop/fs/ProxyLocalFileSystem.java (revision 1405070) +++ shims/src/common/java/org/apache/hadoop/fs/ProxyLocalFileSystem.java (working copy) @@ -53,11 +53,9 @@ if (Shell.WINDOWS) { // Replace the encoded backward slash with forward slash // Remove the windows drive letter - // replace the '=' with special string '------' to handle the unsupported char '=' in windows. nameUriString = nameUriString.replaceAll("%5C", "/") .replaceFirst("/[c-zC-Z]:", "/") - .replaceFirst("^[c-zC-Z]:", "") - .replaceAll("=", "------"); + .replaceFirst("^[c-zC-Z]:", ""); name = URI.create(nameUriString); }