public abstract class NNUpgradeUtil extends Object
| Constructor and Description |
|---|
NNUpgradeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
doUpgrade(org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory sd,
org.apache.hadoop.hdfs.server.common.Storage storage)
Perform the upgrade of the storage dir to the given storage info.
|
static void |
renameCurToTmp(org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory sd)
Rename the existing current dir to previous.tmp, and create a new empty
current dir.
|
public static void renameCurToTmp(org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory sd)
throws IOException
IOExceptionpublic static void doUpgrade(org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory sd,
org.apache.hadoop.hdfs.server.common.Storage storage)
throws IOException
sd - the storage directory to upgradestorage - info about the new upgraded versions.IOException - in the event of errorCopyright © 2022 Apache Software Foundation. All rights reserved.