This is an automated email from the ASF dual-hosted git repository. weichiu pushed a commit to branch branch-3.2 in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.2 by this push: new cb701f4 HDFS-14187. Make warning message more clear when there are not enough data nodes for EC write. Contributed by Kitti Nanasi. cb701f4 is described below commit cb701f4da0bcd89d890ad0e0fccd48d70356137c Author: Kitti Nanasi <knan...@cloudera.com> AuthorDate: Thu Jan 31 16:06:45 2019 -0800 HDFS-14187. Make warning message more clear when there are not enough data nodes for EC write. Contributed by Kitti Nanasi. Signed-off-by: Wei-Chiu Chuang <weic...@apache.org> (cherry picked from commit 0ab7fc92009fec2f0ab341f3d878e1b8864b8ea9) --- .../src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java index df9770e..97310ee 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSStripedOutputStream.java @@ -497,7 +497,10 @@ public class DFSStripedOutputStream extends DFSOutputStream // Set exception and close streamer as there is no block locations // found for the parity block. LOG.warn("Cannot allocate parity block(index={}, policy={}). " + - "Not enough datanodes? Exclude nodes={}", i, ecPolicy.getName(), + "Exclude nodes={}. There may not be enough datanodes or " + + "racks. You can check if the cluster topology supports " + + "the enabled erasure coding policies by running the command " + + "'hdfs ec -verifyClusterSetup'.", i, ecPolicy.getName(), excludedNodes); si.getLastException().set( new IOException("Failed to get parity block, index=" + i)); --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org