From c74e42b4a2293c8adb99b22929047a8d07242d06 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Thu, 19 Nov 2015 20:55:01 +0900 Subject: [PATCH] HDFS-9431. DistributedFileSystem#concat fails if the target path is relative. Contributed by Kazuho Fujii. (cherry picked from commit ac1aa6c8197268ea83f44747199d560be9e299ae) --- .../apache/hadoop/hdfs/DistributedFileSystem.java | 2 +- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/namenode/TestHDFSConcat.java | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java index e70c9ef60f3..91505938907 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java @@ -618,7 +618,7 @@ public class DistributedFileSystem extends FileSystem { for (int i=0; i