From 13a5af0907444e6921b44503d8cf2d07b130fc80 Mon Sep 17 00:00:00 2001
From: Aaron Myers
Date: Wed, 2 May 2012 18:17:18 +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/trunk@1333141 13f79535-47bb-0310-9956-ffa450edef68
---
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
.../src/documentation/content/xdocs/commands_manual.xml | 9 ++++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 2006047d83..cd1d10396e 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -279,6 +279,9 @@ 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 19df2fe9cf..ff893a3db6 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 |
@@ -714,8 +714,11 @@
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 |