Created
July 17, 2018 03:44
-
-
Save phstudy/ab275bd39d0fcaf7b7a136d017d2e19b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java | |
index 10b0012016b..6f53ee436ba 100644 | |
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java | |
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DFSck.java | |
@@ -210,6 +210,11 @@ private Integer listCorruptFileBlocks(String dir, String baseUrl) | |
allDone = true; | |
break; | |
} | |
+ if (line.startsWith("Access denied for user")) { | |
+ numCorrupt = 0; | |
+ allDone = true; | |
+ break; | |
+ } | |
if ((line.isEmpty()) | |
|| (line.startsWith("FSCK started by")) | |
|| (line.startsWith("The filesystem under path"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment