Class HdfsConstants

java.lang.Object
org.apache.hadoop.hdfs.protocol.HdfsConstants

@Private public final class HdfsConstants extends Object
  • Field Details

    • QUOTA_DONT_SET

      public static final long QUOTA_DONT_SET
      See Also:
    • QUOTA_RESET

      public static final long QUOTA_RESET
      See Also:
    • BYTES_IN_INTEGER

      public static final int BYTES_IN_INTEGER
      See Also:
    • HDFS_URI_SCHEME

      public static final String HDFS_URI_SCHEME
      URI Scheme for hdfs://namenode/ URIs.
      See Also:
    • MEMORY_STORAGE_POLICY_ID

      public static final byte MEMORY_STORAGE_POLICY_ID
      See Also:
    • MEMORY_STORAGE_POLICY_NAME

      public static final String MEMORY_STORAGE_POLICY_NAME
      See Also:
    • ALLNVDIMM_STORAGE_POLICY_ID

      public static final byte ALLNVDIMM_STORAGE_POLICY_ID
      See Also:
    • ALLNVDIMM_STORAGE_POLICY_NAME

      public static final String ALLNVDIMM_STORAGE_POLICY_NAME
      See Also:
    • ALLSSD_STORAGE_POLICY_ID

      public static final byte ALLSSD_STORAGE_POLICY_ID
      See Also:
    • ALLSSD_STORAGE_POLICY_NAME

      public static final String ALLSSD_STORAGE_POLICY_NAME
      See Also:
    • ONESSD_STORAGE_POLICY_ID

      public static final byte ONESSD_STORAGE_POLICY_ID
      See Also:
    • ONESSD_STORAGE_POLICY_NAME

      public static final String ONESSD_STORAGE_POLICY_NAME
      See Also:
    • HOT_STORAGE_POLICY_ID

      public static final byte HOT_STORAGE_POLICY_ID
      See Also:
    • HOT_STORAGE_POLICY_NAME

      public static final String HOT_STORAGE_POLICY_NAME
      See Also:
    • WARM_STORAGE_POLICY_ID

      public static final byte WARM_STORAGE_POLICY_ID
      See Also:
    • WARM_STORAGE_POLICY_NAME

      public static final String WARM_STORAGE_POLICY_NAME
      See Also:
    • COLD_STORAGE_POLICY_ID

      public static final byte COLD_STORAGE_POLICY_ID
      See Also:
    • COLD_STORAGE_POLICY_NAME

      public static final String COLD_STORAGE_POLICY_NAME
      See Also:
    • PROVIDED_STORAGE_POLICY_ID

      public static final byte PROVIDED_STORAGE_POLICY_ID
      See Also:
    • PROVIDED_STORAGE_POLICY_NAME

      public static final String PROVIDED_STORAGE_POLICY_NAME
      See Also:
    • DEFAULT_DATA_SOCKET_SIZE

      public static final int DEFAULT_DATA_SOCKET_SIZE
      See Also:
    • DOT_SNAPSHOT_DIR

      public static final String DOT_SNAPSHOT_DIR
      A special path component contained in the path for a snapshot file/dir
      See Also:
    • SEPARATOR_DOT_SNAPSHOT_DIR

      public static final String SEPARATOR_DOT_SNAPSHOT_DIR
      See Also:
    • DOT_SNAPSHOT_DIR_SEPARATOR

      public static final String DOT_SNAPSHOT_DIR_SEPARATOR
      See Also:
    • SEPARATOR_DOT_SNAPSHOT_DIR_SEPARATOR

      public static final String SEPARATOR_DOT_SNAPSHOT_DIR_SEPARATOR
      See Also:
    • DOT_RESERVED_STRING

      public static final String DOT_RESERVED_STRING
      See Also:
    • DOT_RESERVED_PATH_PREFIX

      public static final String DOT_RESERVED_PATH_PREFIX
      See Also:
    • DOT_INODES_STRING

      public static final String DOT_INODES_STRING
      See Also:
    • GRANDFATHER_GENERATION_STAMP

      public static final long GRANDFATHER_GENERATION_STAMP
      Generation stamp of blocks that pre-date the introduction of a generation stamp.
      See Also:
    • GRANDFATHER_INODE_ID

      public static final long GRANDFATHER_INODE_ID
      The inode id validation of lease check will be skipped when the request uses GRANDFATHER_INODE_ID for backward compatibility.
      See Also:
    • BLOCK_STORAGE_POLICY_ID_UNSPECIFIED

      public static final byte BLOCK_STORAGE_POLICY_ID_UNSPECIFIED
      See Also:
    • HA_DT_SERVICE_PREFIX

      public static final String HA_DT_SERVICE_PREFIX
      A prefix put before the namenode URI inside the "service" field of a delgation token, indicating that the URI is a logical (HA) URI.
      See Also:
    • SAFEMODE_EXCEPTION_CLASS_NAME

      public static final String SAFEMODE_EXCEPTION_CLASS_NAME
      See Also:
    • CLIENT_NAMENODE_PROTOCOL_NAME

      public static final String CLIENT_NAMENODE_PROTOCOL_NAME
      HDFS Protocol Names:
      See Also:
    • ROUTER_ADMIN_PROTOCOL_NAME

      public static final String ROUTER_ADMIN_PROTOCOL_NAME
      Router admin Protocol Names.
      See Also:
    • READ_TIMEOUT

      public static final int READ_TIMEOUT
      See Also:
    • READ_TIMEOUT_EXTENSION

      public static final int READ_TIMEOUT_EXTENSION
      See Also:
    • WRITE_TIMEOUT

      public static final int WRITE_TIMEOUT
      See Also:
    • WRITE_TIMEOUT_EXTENSION

      public static final int WRITE_TIMEOUT_EXTENSION
      See Also:
    • LEASE_SOFTLIMIT_PERIOD

      public static final long LEASE_SOFTLIMIT_PERIOD
      For a HDFS client to write to a file, a lease is granted; During the lease period, no other client can write to the file. The writing client can periodically renew the lease. When the file is closed, the lease is revoked. The lease duration is bound by this soft limit and a HdfsClientConfigKeys.DFS_LEASE_HARDLIMIT_KEY. Until the soft limit expires, the writer has sole write access to the file. If the soft limit expires and the client fails to close the file or renew the lease, another client can preempt the lease.
      See Also:
  • Constructor Details

    • HdfsConstants

      protected HdfsConstants()