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 b54694fab1101..fa5c3127d3992 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 @@ -672,9 +672,9 @@ private synchronized DatanodeInfo blockSeekTo(long target) fetchBlockAt(target); } else { connectFailedOnce = true; - DFSClient.LOG.warn("Failed to connect to {} for file {} for block " - + "{}, add to deadNodes and continue. ", targetAddr, src, - targetBlock.getBlock(), ex); + DFSClient.LOG.warn("Failed to connect to {} for file {} for block {}. Error is {}. " + + "Add to deadNodes and continue with other datanodes. ", targetAddr, src, + targetBlock.getBlock(), ex.getMessage()); // Put chosen node into dead list, continue addToLocalDeadNodes(chosenNode); dfsClient.addNodeToDeadNodeDetector(this, chosenNode);