Package org.apache.hadoop.hdfs.server.datanode
package org.apache.hadoop.hdfs.server.datanode
-
ClassDescriptionManages storage for the set of BlockPoolSlices which share a particular block pool id, on this DataNode.This class handles the block recovery work commands.Base class for BPServiceActor class Issued by BPOfferSerivce class to tell BPServiceActor to take several actions.holder class that holds checksum bytes and the length in a block at which the checksum bytes end ex: length = 1023 and checksum is 4 bytes which is for 512 bytes, then the checksum applies for the last chunk, or bytes 512 - 1023DataNode is a class (and program) that stores a set of blocks for a DFS deployment.Used for injecting faults in DFSClient and DFSOutputStream tests.Enums for features that change the layout version.This is the JMX management interface for data node information.Provide utility methods for Datanode.Class for maintain a set of lock for fsDataSetImpl.This interface is used to generate sub lock name for a blockid.Data storage information file.VolumeBuilder holds the metadata (e.g., the storage directories) of the prepared volume returned from
DataStorage.prepareVolume(DataNode, StorageLocation, List).Periodically scans the data directories for block and block metadata files.Helper class for compiling block info reports per block pool.Helper class for compiling block info reports from report compiler threads.Worker class for Disk Balancer.BlockMover supports moving blocks across Volumes.Actual DataMover class for DiskBalancer.Holds source and dest volumes UUIDs and their BasePaths that disk balancer will be operating against.When kernel report a "Input/output error", we use this exception to represents some corruption(e.g. bad disk track) happened on some disk file.Simple class encapsulating all of the configuration that the DataNode loads at startup time.A ErrorReportAction is an instruction issued by BPOfferService to BPServiceActor about a particular block encapsulated in errorMessage.Injects faults in the metadata and data related operations on datanode volumes.This class abstracts out various file IO operations performed by the DataNode and invokes profiling (for collecting stats) and fault injection (for testing) event hooks before and after each file IO.Lists the types of file system operations.This class is used for provided replicas that are finalized.This class describes a replica that has been finalized.Fast and accurate class to tell how much space HDFS is using.The builder class.This class is used for all replicas which are on local storage media and hence, are backed by files.This class defines a replica in a pipeline, which includes a persistent replica being written to by a dfs client or a temporary replica being replicated by a source datanode or being copied for the balancing purpose.This abstract class is used as a base class for provided replicas.This represents block replicas which are stored in DataNode.Exception indicating that the target block already exists and is not set to be recovered/overwritten.This class represents replicas being written.This class is to be used as a builder forReplicaInfoobjects.This class includes a replica being actively written and the reference to the fs volume where this replica is located.This class is used by datanodes to maintain meta data of its replicas.This defines the interface of a replica in Pipeline that's being written toThis class represents replicas that are under block recovery It has a recovery id that is equal to the generation stamp that the replica will be bumped to after recovery The recovery id is used to handle multiple concurrent block recoveries.This class represents a replica that is waiting to be recovered.ReportBadBlockAction is an instruction issued by {{BPOfferService}} to {{BPServiceActor}} to report bad block to namenodeUtility class to start a datanode in a secure cluster, first obtaining privileged resources before main startup and handing them to the datanode.Stash necessary resources needed for datanode operation in a secure env.Manages client short-circuit memory segments on the DataNode.Encapsulates the URI and storage medium that together describe a storage directory.Class to hold the parameters for running aStorageLocation.check(org.apache.hadoop.hdfs.server.datanode.StorageLocation.CheckContext).Exception indicating that the replica is in an unexpected stateVolumeScanner scans a single volume.Used for injecting call backs inVolumeScannerandBlockScannertests.