| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.common | |
| org.apache.hadoop.hdfs.server.datanode | |
| org.apache.hadoop.hdfs.server.namenode |
| Modifier and Type | Method | Description |
|---|---|---|
Storage.StorageDirectory |
Storage.getSingularStorageDir() |
|
Storage.StorageDirectory |
Storage.getStorageDir(int idx) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Iterable<Storage.StorageDirectory> |
Storage.dirIterable(Storage.StorageDirType dirType) |
|
java.util.Iterator<Storage.StorageDirectory> |
Storage.dirIterator() |
Return default iterator
This iterator returns all entries in storageDirs
|
java.util.Iterator<Storage.StorageDirectory> |
Storage.dirIterator(boolean includeShared) |
Return all entries in storageDirs, potentially excluding shared dirs.
|
java.util.Iterator<Storage.StorageDirectory> |
Storage.dirIterator(Storage.StorageDirType dirType) |
Return iterator based on Storage Directory Type
This iterator selects entries in storageDirs of type dirType and returns
them via the Iterator
|
java.util.Iterator<Storage.StorageDirectory> |
Storage.dirIterator(Storage.StorageDirType dirType,
boolean includeShared) |
|
java.util.List<Storage.StorageDirectory> |
Storage.getStorageDirs() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
Storage.addStorageDir(Storage.StorageDirectory sd) |
|
protected void |
StorageInfo.checkStorageType(java.util.Properties props,
Storage.StorageDirectory sd) |
Validate and set storage type from
Properties |
protected static java.lang.String |
StorageInfo.getProperty(java.util.Properties props,
Storage.StorageDirectory sd,
java.lang.String name) |
|
abstract boolean |
Storage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
Return true if the layout of the given storage directory is from a version
of Hadoop prior to the introduction of the "current" and "previous"
directories which allow upgrade and rollback.
|
void |
StorageInfo.readPreviousVersionProperties(Storage.StorageDirectory sd) |
Read properties from the the previous/VERSION file in the given storage directory.
|
void |
StorageInfo.readProperties(Storage.StorageDirectory sd) |
Read properties from the VERSION file in the given storage directory.
|
protected void |
StorageInfo.setClusterId(java.util.Properties props,
int layoutVersion,
Storage.StorageDirectory sd) |
Validate and set clusterId from
Properties |
protected void |
StorageInfo.setcTime(java.util.Properties props,
Storage.StorageDirectory sd) |
Validate and set ctime from
Properties |
protected void |
StorageInfo.setFieldsFromProperties(java.util.Properties props,
Storage.StorageDirectory sd) |
Get common storage fields.
|
protected void |
StorageInfo.setLayoutVersion(java.util.Properties props,
Storage.StorageDirectory sd) |
Validate and set layout version from
Properties |
protected void |
StorageInfo.setNamespaceID(java.util.Properties props,
Storage.StorageDirectory sd) |
Validate and set namespaceID version from
Properties |
protected void |
Storage.setPropertiesFromFields(java.util.Properties props,
Storage.StorageDirectory sd) |
Set common storage fields into the given properties object.
|
void |
Storage.writeProperties(java.io.File to,
Storage.StorageDirectory sd) |
|
void |
Storage.writeProperties(Storage.StorageDirectory sd) |
Write properties to the VERSION file in the given storage directory.
|
| Modifier and Type | Method | Description |
|---|---|---|
Storage.StorageDirectory |
DataStorage.VolumeBuilder.getStorageDirectory() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BlockPoolSliceStorage.addStorageDir(Storage.StorageDirectory sd) |
|
static boolean |
DataStorage.createStorageID(Storage.StorageDirectory sd,
boolean regenerateStorageIds,
org.apache.hadoop.conf.Configuration conf) |
Create an ID for this storage.
|
boolean |
BlockPoolSliceStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
|
boolean |
DataStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
|
boolean |
StorageLocation.matchesStorageDirectory(Storage.StorageDirectory sd) |
|
boolean |
StorageLocation.matchesStorageDirectory(Storage.StorageDirectory sd,
java.lang.String bpid) |
|
protected void |
BlockPoolSliceStorage.setFieldsFromProperties(java.util.Properties props,
Storage.StorageDirectory sd) |
|
protected void |
DataStorage.setFieldsFromProperties(java.util.Properties props,
Storage.StorageDirectory sd) |
|
protected void |
BlockPoolSliceStorage.setPropertiesFromFields(java.util.Properties props,
Storage.StorageDirectory sd) |
Set layoutVersion, namespaceID and blockpoolID into block pool storage
VERSION file
|
protected void |
DataStorage.setPropertiesFromFields(java.util.Properties props,
Storage.StorageDirectory sd) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BlockPoolSliceStorage.clearRollingUpgradeMarkers(java.util.List<Storage.StorageDirectory> dnStorageDirs) |
Check whether the rolling upgrade marker file exists for each BP storage
root.
|
void |
BlockPoolSliceStorage.setRollingUpgradeMarkers(java.util.List<Storage.StorageDirectory> dnStorageDirs) |
Create a rolling upgrade marker file for each BP storage root, if it
does not exist already.
|
| Constructor | Description |
|---|---|
VolumeBuilder(DataStorage storage,
Storage.StorageDirectory sd) |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<Storage.StorageDirectory> |
NNStorage.removedStorageDirs |
List of failed (and thus removed) storages.
|
| Modifier and Type | Method | Description |
|---|---|---|
Storage.StorageDirectory |
FileJournalManager.getStorageDirectory() |
|
Storage.StorageDirectory |
NNStorage.getStorageDirectory(java.net.URI uri) |
Return the storage directory corresponding to the passed URI.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
NNUpgradeUtil.doUpgrade(Storage.StorageDirectory sd,
Storage storage) |
Perform the upgrade of the storage dir to the given storage info.
|
static java.io.File |
NNStorage.getFinalizedEditsFile(Storage.StorageDirectory sd,
long startTxId,
long endTxId) |
|
static java.io.File |
NNStorage.getTemporaryEditsFile(Storage.StorageDirectory sd,
long startTxId,
long endTxId,
long timestamp) |
|
boolean |
NNStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
|
static void |
NNUpgradeUtil.renameCurToTmp(Storage.StorageDirectory sd) |
Rename the existing current dir to previous.tmp, and create a new empty
current dir.
|
protected void |
NNStorage.setFieldsFromProperties(java.util.Properties props,
Storage.StorageDirectory sd) |
|
protected void |
NNStorage.setPropertiesFromFields(java.util.Properties props,
Storage.StorageDirectory sd) |
Write version file into the storage directory.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
FSImage.recoverStorageDirs(HdfsServerConstants.StartupOption startOpt,
NNStorage storage,
java.util.Map<Storage.StorageDirectory,Storage.StorageState> dataDirStates) |
For each storage directory, performs recovery of incomplete transitions
(eg.
|
| Constructor | Description |
|---|---|
FileJournalManager(org.apache.hadoop.conf.Configuration conf,
Storage.StorageDirectory sd,
StorageErrorReporter errorReporter) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.