HDFS-11204. Document the missing options of hdfs zkfc command. Contributed by Yiqun Lin.

(cherry picked from commit 72bff192cd)
This commit is contained in:
Akira Ajisaka 2016-12-14 18:50:43 +09:00
parent 6b795c34d0
commit 190b2dca62
2 changed files with 6 additions and 3 deletions

View File

@ -84,7 +84,10 @@ public abstract class ZKFailoverController {
}; };
protected static final String USAGE = protected static final String USAGE =
"Usage: hdfs zkfc [ -formatZK [-force] [-nonInteractive] ]"; "Usage: hdfs zkfc [ -formatZK [-force] [-nonInteractive] ]\n"
+ "\t-force: formats the znode if the znode exists.\n"
+ "\t-nonInteractive: formats the znode aborts if the znode exists,\n"
+ "\tunless -force option is specified.";
/** Unable to format the parent znode in ZK */ /** Unable to format the parent znode in ZK */
static final int ERR_CODE_FORMAT_DENIED = 2; static final int ERR_CODE_FORMAT_DENIED = 2;

View File

@ -549,7 +549,7 @@ Usage: `hdfs zkfc [-formatZK [-force] [-nonInteractive]]`
| COMMAND\_OPTION | Description | | COMMAND\_OPTION | Description |
|:---- |:---- | |:---- |:---- |
| `-formatZK` | Format the Zookeeper instance | | `-formatZK` | Format the Zookeeper instance. -force: formats the znode if the znode exists. -nonInteractive: formats the znode aborts if the znode exists, unless -force option is specified. |
| `-h` | Display help | | `-h` | Display help |
This comamnd starts a Zookeeper Failover Controller process for use with [HDFS HA with QJM](./HDFSHighAvailabilityWithQJM.html#Administrative_commands). This comamnd starts a Zookeeper Failover Controller process for use with [HDFS HA with QJM](./HDFSHighAvailabilityWithQJM.html#Administrative_commands).