summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei-Chiu Chuang <weichiu@apache.org>2018-05-31 15:20:59 -0700
committerWei-Chiu Chuang <weichiu@apache.org>2018-05-31 15:20:59 -0700
commitc95b9b5c077c5b95649d195bd7385a76604863c1 (patch)
tree48ba40badac77d09179ce739bee7325c4096804a
parentebe5853a458150b7e42fe7434851bfcbe25e354d (diff)
HDFS-13440. Log HDFS file name when client fails to connect. Contributed by Gabor Bota.
-rw-r--r--hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
index b38e629903..e250873589 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java
@@ -593,8 +593,8 @@ public class DFSInputStream extends FSInputStream
fetchBlockAt(target);
} else {
connectFailedOnce = true;
- DFSClient.LOG.warn("Failed to connect to {} for block {}, " +
- "add to deadNodes and continue. ", targetAddr,
+ DFSClient.LOG.warn("Failed to connect to {} for file {} for block "
+ + "{}, add to deadNodes and continue. ", targetAddr, src,
targetBlock.getBlock(), ex);
// Put chosen node into dead list, continue
addToDeadNodes(chosenNode);