HDFS-8241. Remove unused NameNode startup option -finalize. Contributed by Brahma Reddy Battula.
This commit is contained in:
parent
7e543c27fa
commit
1dd79ffaca
@ -26,6 +26,9 @@ Trunk (Unreleased)
|
|||||||
HDFS-8349. Remove .xml and documentation references to dfs.webhdfs.enabled.
|
HDFS-8349. Remove .xml and documentation references to dfs.webhdfs.enabled.
|
||||||
(Ray Chiang via aajisaka)
|
(Ray Chiang via aajisaka)
|
||||||
|
|
||||||
|
HDFS-8241. Remove unused NameNode startup option -finalize.
|
||||||
|
(Brahma Reddy Battula via aajisaka)
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
||||||
HDFS-3125. Add JournalService to enable Journal Daemon. (suresh)
|
HDFS-3125. Add JournalService to enable Journal Daemon. (suresh)
|
||||||
|
@ -155,7 +155,6 @@ enum StartupOption{
|
|||||||
CHECKPOINT("-checkpoint"),
|
CHECKPOINT("-checkpoint"),
|
||||||
UPGRADE ("-upgrade"),
|
UPGRADE ("-upgrade"),
|
||||||
ROLLBACK("-rollback"),
|
ROLLBACK("-rollback"),
|
||||||
FINALIZE("-finalize"),
|
|
||||||
ROLLINGUPGRADE("-rollingUpgrade"),
|
ROLLINGUPGRADE("-rollingUpgrade"),
|
||||||
IMPORT ("-importCheckpoint"),
|
IMPORT ("-importCheckpoint"),
|
||||||
BOOTSTRAPSTANDBY("-bootstrapStandby"),
|
BOOTSTRAPSTANDBY("-bootstrapStandby"),
|
||||||
|
@ -262,7 +262,6 @@ public static enum OperationCategory {
|
|||||||
+ StartupOption.ROLLBACK.getName() + "] | \n\t["
|
+ StartupOption.ROLLBACK.getName() + "] | \n\t["
|
||||||
+ StartupOption.ROLLINGUPGRADE.getName() + " "
|
+ StartupOption.ROLLINGUPGRADE.getName() + " "
|
||||||
+ RollingUpgradeStartupOption.getAllOptionString() + " ] | \n\t["
|
+ RollingUpgradeStartupOption.getAllOptionString() + " ] | \n\t["
|
||||||
+ StartupOption.FINALIZE.getName() + "] | \n\t["
|
|
||||||
+ StartupOption.IMPORT.getName() + "] | \n\t["
|
+ StartupOption.IMPORT.getName() + "] | \n\t["
|
||||||
+ StartupOption.INITIALIZESHAREDEDITS.getName() + "] | \n\t["
|
+ StartupOption.INITIALIZESHAREDEDITS.getName() + "] | \n\t["
|
||||||
+ StartupOption.BOOTSTRAPSTANDBY.getName() + "] | \n\t["
|
+ StartupOption.BOOTSTRAPSTANDBY.getName() + "] | \n\t["
|
||||||
@ -778,8 +777,6 @@ private void stopHttpServer() {
|
|||||||
* metadata</li>
|
* metadata</li>
|
||||||
* <li>{@link StartupOption#ROLLBACK ROLLBACK} - roll the
|
* <li>{@link StartupOption#ROLLBACK ROLLBACK} - roll the
|
||||||
* cluster back to the previous state</li>
|
* cluster back to the previous state</li>
|
||||||
* <li>{@link StartupOption#FINALIZE FINALIZE} - finalize
|
|
||||||
* previous upgrade</li>
|
|
||||||
* <li>{@link StartupOption#IMPORT IMPORT} - import checkpoint</li>
|
* <li>{@link StartupOption#IMPORT IMPORT} - import checkpoint</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* The option is passed via configuration field:
|
* The option is passed via configuration field:
|
||||||
@ -1306,8 +1303,6 @@ static StartupOption parseArguments(String args[]) {
|
|||||||
startOpt.setRollingUpgradeStartupOption(args[i]);
|
startOpt.setRollingUpgradeStartupOption(args[i]);
|
||||||
} else if (StartupOption.ROLLBACK.getName().equalsIgnoreCase(cmd)) {
|
} else if (StartupOption.ROLLBACK.getName().equalsIgnoreCase(cmd)) {
|
||||||
startOpt = StartupOption.ROLLBACK;
|
startOpt = StartupOption.ROLLBACK;
|
||||||
} else if (StartupOption.FINALIZE.getName().equalsIgnoreCase(cmd)) {
|
|
||||||
startOpt = StartupOption.FINALIZE;
|
|
||||||
} else if (StartupOption.IMPORT.getName().equalsIgnoreCase(cmd)) {
|
} else if (StartupOption.IMPORT.getName().equalsIgnoreCase(cmd)) {
|
||||||
startOpt = StartupOption.IMPORT;
|
startOpt = StartupOption.IMPORT;
|
||||||
} else if (StartupOption.BOOTSTRAPSTANDBY.getName().equalsIgnoreCase(cmd)) {
|
} else if (StartupOption.BOOTSTRAPSTANDBY.getName().equalsIgnoreCase(cmd)) {
|
||||||
@ -1442,13 +1437,6 @@ public static NameNode createNameNode(String argv[], Configuration conf)
|
|||||||
terminate(0);
|
terminate(0);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
case FINALIZE: {
|
|
||||||
System.err.println("Use of the argument '" + StartupOption.FINALIZE +
|
|
||||||
"' is no longer supported. To finalize an upgrade, start the NN " +
|
|
||||||
" and then run `hdfs dfsadmin -finalizeUpgrade'");
|
|
||||||
terminate(1);
|
|
||||||
return null; // avoid javac warning
|
|
||||||
}
|
|
||||||
case ROLLBACK: {
|
case ROLLBACK: {
|
||||||
boolean aborted = doRollback(conf, true);
|
boolean aborted = doRollback(conf, true);
|
||||||
terminate(aborted ? 1 : 0);
|
terminate(aborted ? 1 : 0);
|
||||||
|
@ -416,7 +416,6 @@ Usage:
|
|||||||
[-upgradeOnly [-clusterid cid] [-renameReserved<k-v pairs>] ] |
|
[-upgradeOnly [-clusterid cid] [-renameReserved<k-v pairs>] ] |
|
||||||
[-rollback] |
|
[-rollback] |
|
||||||
[-rollingUpgrade <rollback |started> ] |
|
[-rollingUpgrade <rollback |started> ] |
|
||||||
[-finalize] |
|
|
||||||
[-importCheckpoint] |
|
[-importCheckpoint] |
|
||||||
[-initializeSharedEdits] |
|
[-initializeSharedEdits] |
|
||||||
[-bootstrapStandby] |
|
[-bootstrapStandby] |
|
||||||
@ -432,14 +431,13 @@ Usage:
|
|||||||
| `-upgradeOnly` `[-clusterid cid]` [`-renameReserved` \<k-v pairs\>] | Upgrade the specified NameNode and then shutdown it. |
|
| `-upgradeOnly` `[-clusterid cid]` [`-renameReserved` \<k-v pairs\>] | Upgrade the specified NameNode and then shutdown it. |
|
||||||
| `-rollback` | Rollback the NameNode to the previous version. This should be used after stopping the cluster and distributing the old Hadoop version. |
|
| `-rollback` | Rollback the NameNode to the previous version. This should be used after stopping the cluster and distributing the old Hadoop version. |
|
||||||
| `-rollingUpgrade` \<rollback\|started\> | See [Rolling Upgrade document](./HdfsRollingUpgrade.html#NameNode_Startup_Options) for the detail. |
|
| `-rollingUpgrade` \<rollback\|started\> | See [Rolling Upgrade document](./HdfsRollingUpgrade.html#NameNode_Startup_Options) for the detail. |
|
||||||
| `-finalize` | No longer supported. Use `dfsadmin -finalizeUpgrade` instead. |
|
|
||||||
| `-importCheckpoint` | Loads image from a checkpoint directory and save it into the current one. Checkpoint dir is read from property fs.checkpoint.dir |
|
| `-importCheckpoint` | Loads image from a checkpoint directory and save it into the current one. Checkpoint dir is read from property fs.checkpoint.dir |
|
||||||
| `-initializeSharedEdits` | Format a new shared edits dir and copy in enough edit log segments so that the standby NameNode can start up. |
|
| `-initializeSharedEdits` | Format a new shared edits dir and copy in enough edit log segments so that the standby NameNode can start up. |
|
||||||
| `-bootstrapStandby` | Allows the standby NameNode's storage directories to be bootstrapped by copying the latest namespace snapshot from the active NameNode. This is used when first configuring an HA cluster. |
|
| `-bootstrapStandby` | Allows the standby NameNode's storage directories to be bootstrapped by copying the latest namespace snapshot from the active NameNode. This is used when first configuring an HA cluster. |
|
||||||
| `-recover` `[-force]` | Recover lost metadata on a corrupt filesystem. See [HDFS User Guide](./HdfsUserGuide.html#Recovery_Mode) for the detail. |
|
| `-recover` `[-force]` | Recover lost metadata on a corrupt filesystem. See [HDFS User Guide](./HdfsUserGuide.html#Recovery_Mode) for the detail. |
|
||||||
| `-metadataVersion` | Verify that configured directories exist, then print the metadata versions of the software and the image. |
|
| `-metadataVersion` | Verify that configured directories exist, then print the metadata versions of the software and the image. |
|
||||||
|
|
||||||
Runs the namenode. More info about the upgrade, rollback and finalize is at [Upgrade Rollback](./HdfsUserGuide.html#Upgrade_and_Rollback).
|
Runs the namenode. More info about the upgrade and rollback is at [Upgrade Rollback](./HdfsUserGuide.html#Upgrade_and_Rollback).
|
||||||
|
|
||||||
### `nfs3`
|
### `nfs3`
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ public void testStartupOptionParsing() {
|
|||||||
verifyStartupOptionResult("CHECKPOINT", StartupOption.CHECKPOINT, null);
|
verifyStartupOptionResult("CHECKPOINT", StartupOption.CHECKPOINT, null);
|
||||||
verifyStartupOptionResult("UPGRADE", StartupOption.UPGRADE, null);
|
verifyStartupOptionResult("UPGRADE", StartupOption.UPGRADE, null);
|
||||||
verifyStartupOptionResult("ROLLBACK", StartupOption.ROLLBACK, null);
|
verifyStartupOptionResult("ROLLBACK", StartupOption.ROLLBACK, null);
|
||||||
verifyStartupOptionResult("FINALIZE", StartupOption.FINALIZE, null);
|
|
||||||
verifyStartupOptionResult("ROLLINGUPGRADE", StartupOption.ROLLINGUPGRADE, null);
|
verifyStartupOptionResult("ROLLINGUPGRADE", StartupOption.ROLLINGUPGRADE, null);
|
||||||
verifyStartupOptionResult("IMPORT", StartupOption.IMPORT, null);
|
verifyStartupOptionResult("IMPORT", StartupOption.IMPORT, null);
|
||||||
verifyStartupOptionResult("INITIALIZESHAREDEDITS", StartupOption.INITIALIZESHAREDEDITS, null);
|
verifyStartupOptionResult("INITIALIZESHAREDEDITS", StartupOption.INITIALIZESHAREDEDITS, null);
|
||||||
|
Loading…
Reference in New Issue
Block a user