Package org.apache.hadoop.hdfs.server.namenode
package org.apache.hadoop.hdfs.server.namenode
-
ClassDescriptionClass to pack an AclEntry into an integer.Feature that represents the ACLs of the inode.AclStorage contains utility methods that define how ACL data is stored in the namespace.Interface defining an audit logger.Extension of FSImage for the backup node.BackupNode.Represents a cached block.The Cache Manager handles caching on DataNodes.A CachePool describes a set of cache resources being managed by the NameNode.Utility class to faciliate some fault injection tests for the checkpointing process.A unique signature intended to identify checkpoint transactions.The content types such as file, directory and symlink to be computed.The counter to be computed for content types such as file, directory and symlink, and the storage type usage such as SSD, DISK, ARCHIVE.This class provides an interface for Namenode and Router to Audit events information.A default implementation of the INodeAttributesProviderA base class for the servlets in DFS.Quota feature for
INodeDirectory.An implementation of the abstract classEditLogInputStream, which reads edits from a file.An implementation of the abstract classEditLogOutputStream, which stores edits in a local file.Thrown when there's a failure to read an edit log op from disk when loading edits.A generic abstract class to support reading edits log data from persistent storage.A generic abstract class to support journaling of edits logs into a persistent storage.A double-buffer for edits.Used to inject certain faults for testing.Manages the list of encryption zones in the filesystem.This manages erasure coding policies predefined and activated in the system.Journal manager for the common case of edits files being written to a storage directory.Record of an edit log that has been located and had its filename parsed.Feature for under-construction file.This class is used in Namesystem's web server to do fsck on namenode.Both FSDirectory and FSNamesystem manage the state of the namespace.FSEditLog maintains a log of the namespace modifications.Stream wrapper that keeps track of the current stream position.Helper classes for reading the ops from an InputStream.Class for reading editlog ops from a streamClass for writing editlog opsOp codes for edits fileFSImage handles checkpointing and logging of the namespace edits.Simple container class that handles support for compressed fsimage files.Contains inner classes for reading or writing the on-disk format for FSImages.A one-shot class responsible for loading an image.Utility class to read / write fsimage in protobuf format.Supported section name.Protobuf typehadoop.hdfs.fsimage.CacheManagerSectionProtobuf typehadoop.hdfs.fsimage.CacheManagerSectionProtobuf typehadoop.hdfs.fsimage.ErasureCodingSectionProtobuf typehadoop.hdfs.fsimage.ErasureCodingSectionProtobuf typehadoop.hdfs.fsimage.FileSummaryProtobuf typehadoop.hdfs.fsimage.FileSummaryindex for each sectionindex for each sectionThis section records information about under-construction files for reconstructing the lease map.This section records information about under-construction files for reconstructing the lease map.Protobuf typehadoop.hdfs.fsimage.FilesUnderConstructionSection.FileUnderConstructionEntryProtobuf typehadoop.hdfs.fsimage.FilesUnderConstructionSection.FileUnderConstructionEntryThis section records the children of each directories NAME: INODE_DIRThis section records the children of each directories NAME: INODE_DIRA single DirEntry needs to fit in the default PB max message size of 64MB.A single DirEntry needs to fit in the default PB max message size of 64MB.Protobuf typehadoop.hdfs.fsimage.INodeReferenceSectionProtobuf typehadoop.hdfs.fsimage.INodeReferenceSectionProtobuf typehadoop.hdfs.fsimage.INodeReferenceSection.INodeReferenceProtobuf typehadoop.hdfs.fsimage.INodeReferenceSection.INodeReferencePermission is serialized as a 64-bit long. [0:24):[25:48):[48:64) (in Big Endian).Protobuf typehadoop.hdfs.fsimage.INodeSection.AclFeatureProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.AclFeatureProtoPermission is serialized as a 64-bit long. [0:24):[25:48):[48:64) (in Big Endian).under-construction feature for INodeFileunder-construction feature for INodeFileProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeProtobuf enumhadoop.hdfs.fsimage.INodeSection.INode.TypeProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeDirectoryProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeDirectoryProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeFileProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeFileProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeSymlinkProtobuf typehadoop.hdfs.fsimage.INodeSection.INodeSymlinkProtobuf typehadoop.hdfs.fsimage.INodeSection.QuotaByStorageTypeEntryProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.QuotaByStorageTypeEntryProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.QuotaByStorageTypeFeatureProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.QuotaByStorageTypeFeatureProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.XAttrCompactProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.XAttrCompactProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.XAttrFeatureProtoProtobuf typehadoop.hdfs.fsimage.INodeSection.XAttrFeatureProtoName: NS_INFOName: NS_INFOProtobuf typehadoop.hdfs.fsimage.SecretManagerSectionProtobuf typehadoop.hdfs.fsimage.SecretManagerSectionProtobuf typehadoop.hdfs.fsimage.SecretManagerSection.DelegationKeyProtobuf typehadoop.hdfs.fsimage.SecretManagerSection.DelegationKeyProtobuf typehadoop.hdfs.fsimage.SecretManagerSection.PersistTokenProtobuf typehadoop.hdfs.fsimage.SecretManagerSection.PersistTokenThis section records information about snapshot diffs NAME: SNAPSHOT_DIFFThis section records information about snapshot diffs NAME: SNAPSHOT_DIFFProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.CreatedListEntryProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.CreatedListEntryProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.DiffEntryProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.DiffEntryProtobuf enumhadoop.hdfs.fsimage.SnapshotDiffSection.DiffEntry.TypeProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.DirectoryDiffProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.DirectoryDiffProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.FileDiffProtobuf typehadoop.hdfs.fsimage.SnapshotDiffSection.FileDiffThis section records the information about snapshot NAME: SNAPSHOTThis section records the information about snapshot NAME: SNAPSHOTProtobuf typehadoop.hdfs.fsimage.SnapshotSection.SnapshotProtobuf typehadoop.hdfs.fsimage.SnapshotSection.SnapshotThis section maps string to id NAME: STRING_TABLEThis section maps string to id NAME: STRING_TABLEProtobuf typehadoop.hdfs.fsimage.StringTableSection.EntryProtobuf typehadoop.hdfs.fsimage.StringTableSection.EntryStatic utility functions for serializing various pieces of data in the correct format for the FSImage file.For validatingFSImage.FSNamesystem is a container of both transient and persisted name-space state, and does all the book-keeping work on a NameNode.Mimics a ReentrantReadWriteLock but does not directly implement the interface so more sophisticated locking capabilities and logging/metrics are possible.Class that helps in checking file system permission.FSTreeTraverser traverse directory recursively and process files in batches.Class will represent the additional info required for traverse.Extension ofAuditLogger.Thrown when upgrading from software release that doesn't support reserved path to software release that supports reserved path, and when there is reserved path name in the Fsimage.This class is used in Namesystem's jetty to retrieve/upload a file Typically used by the Secondary NameNode to retrieve image and edit file for periodic checkpointing in Non-HA deployments.We keep an in-memory representation of the file/block hierarchy.Information used for updating the blocksMap when deleting files.The blocks whose replication factor need to be updated.INode feature such asFileUnderConstructionFeatureandDirectoryWithQuotaFeature.Information used to record quota usage delta.Context object to record blocks and inodes that need to be reclaimedThe AccessControlEnforcer allows implementations to override the default File System permission checking logic enforced on a file system objectThe attributes of an inode.A read-only copy of the inode attributes.Directory INode class.A pair of Snapshot and INode objects.The attributes of an inode.A copy of the inode directory attributesI-node for closed file.The attributes of a file.A copy of the inode file attributesAn id which uniquely identifies an inode.Storing all theINodes and maintaining the mapping between INode ID and INode.A reference to an inode.An anonymous reference with reference count.A reference with a fixed name.For validatingINodeReferencesubclasses.Contains INodes information resolved from a given path.AnINoderepresenting a symbolic link.INodewith additional fields including id, name, permission, access time and modification time.Translates from edit log ops to inotify events.Used by Load Balancers to find the active NameNode.A JournalManager is responsible for managing a single place of storing edit logs.Indicate that a journal is cannot be used to load a certain range of edits.Manages a collection of Journals.The lease that was being used to create this file has expired.LeaseManager does the lease housekeeping for writing on files.Context data for an ongoing NameNode metadata recovery process.Exception thrown when the user has requested processing to stop.NameNode serves as both directory namespace manager and "inode table" for the Hadoop DFS.Categories of operations supported by the namenode.Thrown when NameNode format fails.This class provides rudimentary checking of DFS volumes for errors and sub-optimal conditions.Encapsulates the HTTP server started by the NameNode.Enums for features that change the layout version.This is the JMX management interface for namenode information.NameNodeResourceChecker provides a method -hasAvailableDiskSpace- which will return true if and only if the NameNode has disk space available on all required volumes, and any volume which is configured to be redundant.This class is responsible for handling all of the RPC calls to the NameNode.This is the JMX management interface for NameNode status information.Utility functions for the NameNode.Namesystem operations.A servlet to print out the network topology.NNStorage is responsible for management of the StorageDirectories used by the NameNode.Implementation of StorageDirType specific to namenode storage A Storage directory could be of type IMAGE which stores only fsimage, or of type EDITS which stores edits or of type IMAGE_AND_EDITS which stores both fsimage and edits.The filenames used for storing the images.The NNStorageRetentionManager is responsible for inspecting the storage directories of the NN and enforcing a retention policy on checkpoints and edit logs.Quota types.Counters for quota counts.Counters for namespace, storage space and storage type space quota and usage.Class for handling re-encrypt EDEK operations.Class for finalizing re-encrypt EDEK operations, by updating file xattrs with edeks returned from reencryption.SafeMode related operations.Context for an ongoing SaveNamespace operation.The Secondary NameNode is a helper to the primary NameNode.JMX information of the secondary NameNodeManage name-to-serial-number maps for various string tables.Map object to serial number.Servlet that provides a JSON representation of the namenode's current startup progress.Aggregate the storage type information for a set of blocksThis class provides fetching a specified file from the NameNode.This exception is thrown when an operation is not supported.Feature for extended attributes.Class to pack XAttrs into byte[].
Note: this format is used both in-memory and on-disk.There are four types of extended attributes <XAttr> defined by the following namespaces:
USER - extended user attributes: these can be assigned to files and directories to store arbitrary additional information.XAttrStorage is used to read and set xattrs for an inode.