Uses of Class
org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory
Packages that use Storage.StorageDirectory
Package
Description
-
Uses of Storage.StorageDirectory in org.apache.hadoop.hdfs.server.common
Methods in org.apache.hadoop.hdfs.server.common that return Storage.StorageDirectoryMethods in org.apache.hadoop.hdfs.server.common that return types with arguments of type Storage.StorageDirectoryModifier and TypeMethodDescriptionStorage.dirIterable(Storage.StorageDirType dirType) Storage.dirIterator()Return default iterator This iterator returns all entries in storageDirsStorage.dirIterator(boolean includeShared) Return all entries in storageDirs, potentially excluding shared dirs.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 IteratorStorage.dirIterator(Storage.StorageDirType dirType, boolean includeShared) Storage.getStorageDirs()Methods in org.apache.hadoop.hdfs.server.common with parameters of type Storage.StorageDirectoryModifier and TypeMethodDescriptionprotected voidStorage.addStorageDir(Storage.StorageDirectory sd) protected voidStorageInfo.checkStorageType(Properties props, Storage.StorageDirectory sd) Validate and set storage type fromPropertiesprotected static StringStorageInfo.getProperty(Properties props, Storage.StorageDirectory sd, String name) abstract booleanStorage.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.voidStorageInfo.readPreviousVersionProperties(Storage.StorageDirectory sd) Read properties from the the previous/VERSION file in the given storage directory.voidStorageInfo.readProperties(Storage.StorageDirectory sd) Read properties from the VERSION file in the given storage directory.protected voidStorageInfo.setClusterId(Properties props, int layoutVersion, Storage.StorageDirectory sd) Validate and set clusterId fromPropertiesprotected voidStorageInfo.setcTime(Properties props, Storage.StorageDirectory sd) Validate and set ctime fromPropertiesprotected voidStorageInfo.setFieldsFromProperties(Properties props, Storage.StorageDirectory sd) Get common storage fields.protected voidStorageInfo.setLayoutVersion(Properties props, Storage.StorageDirectory sd) Validate and set layout version fromPropertiesprotected voidStorageInfo.setNamespaceID(Properties props, Storage.StorageDirectory sd) Validate and set namespaceID version fromPropertiesprotected voidStorage.setPropertiesFromFields(Properties props, Storage.StorageDirectory sd) Set common storage fields into the given properties object.voidStorage.writeProperties(File to, Storage.StorageDirectory sd) voidStorage.writeProperties(Storage.StorageDirectory sd) Write properties to the VERSION file in the given storage directory. -
Uses of Storage.StorageDirectory in org.apache.hadoop.hdfs.server.datanode
Methods in org.apache.hadoop.hdfs.server.datanode that return Storage.StorageDirectoryModifier and TypeMethodDescriptionfinal Storage.StorageDirectoryDataStorage.VolumeBuilder.getStorageDirectory()Methods in org.apache.hadoop.hdfs.server.datanode with parameters of type Storage.StorageDirectoryModifier and TypeMethodDescriptionvoidBlockPoolSliceStorage.addStorageDir(Storage.StorageDirectory sd) static booleanDataStorage.createStorageID(Storage.StorageDirectory sd, boolean regenerateStorageIds, org.apache.hadoop.conf.Configuration conf) Create an ID for this storage.booleanBlockPoolSliceStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) booleanDataStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) booleanStorageLocation.matchesStorageDirectory(Storage.StorageDirectory sd) booleanStorageLocation.matchesStorageDirectory(Storage.StorageDirectory sd, String bpid) protected voidBlockPoolSliceStorage.setFieldsFromProperties(Properties props, Storage.StorageDirectory sd) protected voidDataStorage.setFieldsFromProperties(Properties props, Storage.StorageDirectory sd) protected voidBlockPoolSliceStorage.setPropertiesFromFields(Properties props, Storage.StorageDirectory sd) Set layoutVersion, namespaceID and blockpoolID into block pool storage VERSION fileprotected voidDataStorage.setPropertiesFromFields(Properties props, Storage.StorageDirectory sd) Method parameters in org.apache.hadoop.hdfs.server.datanode with type arguments of type Storage.StorageDirectoryModifier and TypeMethodDescriptionvoidBlockPoolSliceStorage.clearRollingUpgradeMarkers(List<Storage.StorageDirectory> dnStorageDirs) Check whether the rolling upgrade marker file exists for each BP storage root.voidBlockPoolSliceStorage.setRollingUpgradeMarkers(List<Storage.StorageDirectory> dnStorageDirs) Create a rolling upgrade marker file for each BP storage root, if it does not exist already.Constructors in org.apache.hadoop.hdfs.server.datanode with parameters of type Storage.StorageDirectory -
Uses of Storage.StorageDirectory in org.apache.hadoop.hdfs.server.namenode
Fields in org.apache.hadoop.hdfs.server.namenode with type parameters of type Storage.StorageDirectoryModifier and TypeFieldDescriptionprotected final List<Storage.StorageDirectory>NNStorage.removedStorageDirsList of failed (and thus removed) storages.Methods in org.apache.hadoop.hdfs.server.namenode that return Storage.StorageDirectoryModifier and TypeMethodDescriptionFileJournalManager.getStorageDirectory()NNStorage.getStorageDirectory(URI uri) Return the storage directory corresponding to the passed URI.Methods in org.apache.hadoop.hdfs.server.namenode with parameters of type Storage.StorageDirectoryModifier and TypeMethodDescriptionstatic voidNNUpgradeUtil.doUpgrade(Storage.StorageDirectory sd, Storage storage) Perform the upgrade of the storage dir to the given storage info.static FileNNStorage.getFinalizedEditsFile(Storage.StorageDirectory sd, long startTxId, long endTxId) static FileNNStorage.getTemporaryEditsFile(Storage.StorageDirectory sd, long startTxId, long endTxId, long timestamp) booleanNNStorage.isPreUpgradableLayout(Storage.StorageDirectory sd) static voidNNUpgradeUtil.renameCurToTmp(Storage.StorageDirectory sd) Rename the existing current dir to previous.tmp, and create a new empty current dir.protected voidNNStorage.setFieldsFromProperties(Properties props, Storage.StorageDirectory sd) protected voidNNStorage.setPropertiesFromFields(Properties props, Storage.StorageDirectory sd) Write version file into the storage directory.Method parameters in org.apache.hadoop.hdfs.server.namenode with type arguments of type Storage.StorageDirectoryModifier and TypeMethodDescriptionstatic booleanFSImage.recoverStorageDirs(HdfsServerConstants.StartupOption startOpt, NNStorage storage, Map<Storage.StorageDirectory, Storage.StorageState> dataDirStates) For each storage directory, performs recovery of incomplete transitions (eg. upgrade, rollback, checkpoint) and inserts the directory's storage state into the dataDirStates map.Constructors in org.apache.hadoop.hdfs.server.namenode with parameters of type Storage.StorageDirectoryModifierConstructorDescriptionFileJournalManager(org.apache.hadoop.conf.Configuration conf, Storage.StorageDirectory sd, StorageErrorReporter errorReporter)