diff --git a/hadoop-hdfs-project/hadoop-hdfs-nnproxy/src/main/java/org/apache/hadoop/hdfs/nnproxy/server/mount/MountsManager.java b/hadoop-hdfs-project/hadoop-hdfs-nnproxy/src/main/java/org/apache/hadoop/hdfs/nnproxy/server/mount/MountsManager.java index 022fb138e87..783ab56a0f8 100755 --- a/hadoop-hdfs-project/hadoop-hdfs-nnproxy/src/main/java/org/apache/hadoop/hdfs/nnproxy/server/mount/MountsManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs-nnproxy/src/main/java/org/apache/hadoop/hdfs/nnproxy/server/mount/MountsManager.java @@ -124,9 +124,9 @@ public String resolve(String path) { public String resolveForBench(String path) { String parent = ""; if (path.charAt(49) == '/') - parent = s.substring(0, 49); + parent = path.substring(0, 49); else - parent = s.substring(0, 50); + parent = path.substring(0, 50); return this.lookupMap.get(parent).get(0).fsUri; }