diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index f023b2bfd87..04610382baf 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -148,6 +148,8 @@ Release 2.0.0 - UNRELEASED HADOOP-7549. Use JDK ServiceLoader mechanism to find FileSystem implementations. (tucu) + HADOOP-8185. Update namenode -format documentation and add -nonInteractive and -force. (Arpit Gupta via atm) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml b/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml index 19df2fe9cf5..ff893a3db6c 100644 --- a/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml +++ b/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml @@ -696,7 +696,7 @@ Upgrade and Rollback.
- Usage: hadoop namenode [-format] | [-upgrade] | [-rollback] | [-finalize] | [-importCheckpoint] | [-checkpoint] | [-backup]
+ Usage: hadoop namenode [-format [-force] [-nonInteractive] [-clusterid someid]] | [-upgrade] | [-rollback] | [-finalize] | [-importCheckpoint] | [-checkpoint] | [-backup]
COMMAND_OPTION | Description | Start namenode in backup role, maintaining an up-to-date in-memory copy of the namespace and creating periodic checkpoints. | |
---|---|---|---|
-format |
- Formats the namenode. It starts the namenode, formats it and then shut it down. | +-format [-force] [-nonInteractive] [-clusterid someid] |
+ Formats the namenode. It starts the namenode, formats it and then shuts it down. User will be prompted before formatting any non empty name directories in the local filesystem. + -nonInteractive: User will not be prompted for input if non empty name directories exist in the local filesystem and the format will fail. + -force: Formats the namenode and the user will NOT be prompted to confirm formatting of the name directories in the local filesystem. If -nonInteractive option is specified it will be ignored. + -clusterid: Associates the namenode with the id specified. When formatting federated namenodes use this option to make sure all namenodes are associated with the same id. |
-upgrade |