Package | Description |
---|---|
org.apache.hadoop.hdfs.server.common | |
org.apache.hadoop.hdfs.server.datanode | |
org.apache.hadoop.hdfs.server.namenode |
Modifier and Type | Field and Description |
---|---|
protected List<Storage.StorageDirectory> |
Storage.storageDirs |
Modifier and Type | Method and Description |
---|---|
Storage.StorageDirectory |
Storage.getSingularStorageDir() |
Storage.StorageDirectory |
Storage.getStorageDir(int idx) |
Modifier and Type | Method and Description |
---|---|
Iterable<Storage.StorageDirectory> |
Storage.dirIterable(Storage.StorageDirType dirType) |
Iterator<Storage.StorageDirectory> |
Storage.dirIterator()
Return default iterator
This iterator returns all entries in storageDirs
|
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
|
Modifier and Type | Method and Description |
---|---|
protected void |
Storage.addStorageDir(Storage.StorageDirectory sd) |
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 |
Storage.readPreviousVersionProperties(Storage.StorageDirectory sd)
Read properties from the the previous/VERSION file in the given storage directory.
|
void |
Storage.readProperties(Storage.StorageDirectory sd)
Read properties from the VERSION file in the given storage directory.
|
protected void |
Storage.setClusterId(Properties props,
int layoutVersion,
Storage.StorageDirectory sd)
Validate and set clusterId from
Properties |
protected void |
Storage.setcTime(Properties props,
Storage.StorageDirectory sd)
Validate and set ctime from
Properties |
protected void |
Storage.setFieldsFromProperties(Properties props,
Storage.StorageDirectory sd)
Get common storage fields.
|
protected void |
Storage.setLayoutVersion(Properties props,
Storage.StorageDirectory sd)
Validate and set layout version from
Properties |
protected void |
Storage.setNamespaceID(Properties props,
Storage.StorageDirectory sd)
Validate and set namespaceID version from
Properties |
protected void |
Storage.setPropertiesFromFields(Properties props,
Storage.StorageDirectory sd)
Set common storage fields into the given properties object.
|
protected void |
Storage.setStorageType(Properties props,
Storage.StorageDirectory sd)
Validate and set storage type from
Properties |
void |
Storage.writeProperties(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 and Description |
---|---|
boolean |
BlockPoolSliceStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
boolean |
DataStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
protected void |
BlockPoolSliceStorage.setFieldsFromProperties(Properties props,
Storage.StorageDirectory sd) |
protected void |
DataStorage.setFieldsFromProperties(Properties props,
Storage.StorageDirectory sd) |
protected void |
BlockPoolSliceStorage.setPropertiesFromFields(Properties props,
Storage.StorageDirectory sd)
Set layoutVersion, namespaceID and blockpoolID into block pool storage
VERSION file
|
protected void |
DataStorage.setPropertiesFromFields(Properties props,
Storage.StorageDirectory sd) |
Modifier and Type | Field and Description |
---|---|
protected List<Storage.StorageDirectory> |
NNStorage.removedStorageDirs
list of failed (and thus removed) storages
|
Modifier and Type | Method and Description |
---|---|
Storage.StorageDirectory |
FileJournalManager.getStorageDirectory() |
Modifier and Type | Method and Description |
---|---|
boolean |
NNStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) |
protected void |
NNStorage.setFieldsFromProperties(Properties props,
Storage.StorageDirectory sd) |
protected void |
NNStorage.setPropertiesFromFields(Properties props,
Storage.StorageDirectory sd)
Write version file into the storage directory.
|
Constructor and Description |
---|
FileJournalManager(Configuration conf,
Storage.StorageDirectory sd,
StorageErrorReporter errorReporter) |
Copyright © 2013 Apache Software Foundation. All rights reserved.