From 653bae728f3d21a143f1c3dd8e2bad15890c8713 Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Wed, 2 May 2012 18:21:51 +0000 Subject: [PATCH] HADOOP-8185. Update namenode -format documentation and add -nonInteractive and -force. Contributed by Arpit Gupta. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1333142 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../src/documentation/content/xdocs/commands_manual.xml | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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]

@@ -714,8 +714,11 @@ - - + +
COMMAND_OPTION Description
Start namenode in backup role, maintaining an up-to-date in-memory copy of the namespace and creating periodic checkpoints.
-formatFormats 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