From ee85c48d607050e821f758d53613754043a136b4 Mon Sep 17 00:00:00 2001 From: "Haiyang.Hu" Date: Sat, 15 Jul 2023 21:24:06 +0800 Subject: [PATCH 1/3] HDFS-17088. Improve the debug verifyEC and dfsrouteradmin commands in HDFSCommands.md --- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 01ae1b3e47724..788aa17bbecac 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -452,6 +452,7 @@ Usage: hdfs dfsrouteradmin [-add [-readonly] [-faulttolerant] [-order HASH|LOCAL|RANDOM|HASH_ALL] -owner -group -mode ] + [-addAll [-readonly] [-faulttolerant][-order HASH|LOCAL|RANDOM|HASH_ALL|SPACE] -owner -group -mode , [-readonly] [-faulttolerant] [-order HASH|LOCAL|RANDOM|HASH_ALL|SPACE] -owner -group -mode , ...] [-update [ ] [-readonly true|false] [-faulttolerant true|false] [-order HASH|LOCAL|RANDOM|HASH_ALL] -owner -group -mode ] [-rm ] [-ls [-d] ] @@ -718,11 +719,13 @@ Recover the lease on the specified path. The path must reside on an HDFS file sy ### `verifyEC` -Usage: `hdfs debug verifyEC -file ` +Usage: `hdfs debug verifyEC -file [-blockId ] [-skipFailureBlocks]` | COMMAND\_OPTION | Description | |:---- |:---- | | [`-file` *EC-file*] | HDFS EC file to be verified. | +| [`-blockId` *blk_Id*] | Specify the blk_Id to verify a block group of the file. | +| [`-skipFailureBlocks`] | Specify will skip any block group failures during verify and continues verify all block groups of the file, the default is not to skip failure blocks . | Verify the correctness of erasure coding on an erasure coded file. From 9e4274e33f70f9245d37afd0a96d4b102fd426cd Mon Sep 17 00:00:00 2001 From: "Haiyang.Hu" Date: Mon, 17 Jul 2023 19:58:53 +0800 Subject: [PATCH 2/3] HDFS-17088. Modify patch based on comments --- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 788aa17bbecac..71ef680c2b5cc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -518,7 +518,7 @@ Runs the diskbalancer CLI. See [HDFS Diskbalancer](./HDFSDiskbalancer.html) for Usage: hdfs ec [generic options] - [-setPolicy -policy -path ] + [-setPolicy -policy -path [-replicate]] [-getPolicy -path ] [-unsetPolicy -path ] [-listPolicies] From 7433ae61acc8706ab20c346d73f5d68987853a21 Mon Sep 17 00:00:00 2001 From: "Haiyang.Hu" Date: Tue, 18 Jul 2023 17:32:36 +0800 Subject: [PATCH 3/3] HDFS-17088. Modify patch based on comments --- .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 1 + 1 file changed, 1 insertion(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 71ef680c2b5cc..acaf96948a0fb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -461,6 +461,7 @@ Usage: [-setStorageTypeQuota -storageType ] [-clrQuota ] [-clrStorageTypeQuota ] + [-dumpState] [-safemode enter | leave | get] [-nameservice disable | enable ] [-getDisabledNameservices]