Package org.apache.hadoop.fs.s3a.impl
Class InternalConstants
java.lang.Object
org.apache.hadoop.fs.s3a.impl.InternalConstants
Internal constants private only to the S3A codebase.
Please don't refer to these outside of this module & its tests.
If you find you need to then either the code is doing something it
should not, or these constants need to be uprated to being
public and stable entries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringError message to indicate Access Points are not accessible or don't exist.static final StringError message to indicate Access Points are required to be used for S3 access.static final StringAccessPoint ARN for the bucket.static final StringAWS V4 Auth Scheme to use when creating signers: "aws.auth#sigv4".static final StringThe system property used by the AWS SDK to identify the region.The known keys used in a createFile call.static final intS3 client side encryption adds padding to the content length of constant length of 16 bytes (at the moment, since we have only 1 content encryption algorithm).static final intDefault blocksize as used in blocksize and FS status queries: 33554432.static final intMaximum entries you can upload in a single file write/copy/upload.static final booleanThis declared delete as idempotent.static final intsize of a buffer to create when draining the stream.static final intThe maximum number of entries that can be deleted in any bulk delete call to S3: 1000.static final StringAWS Error code for conditional put failure on s3 express buckets: "PreconditionFailed".static final intThis is an arbitrary value: 10.Dynamic Path capabilities to be evaluated in the BucketInfo tool.The known keys used in a standard openFile call.static final int200 status code: OK.static final int301 status code: Moved Permanently.static final int307 status code: Temporary Redirect.static final int400 status code: Bad Request.static final int401 status code: Unauthorized.static final intDeprecated.static final int403 status code: Forbidden.static final intDeprecated.static final int404 status code: Not Found.static final int405 status code: Method Not Allowed.static final int409 status code: Conflict.static final int410 status code: Gone.static final int412 status code: Precondition Failed.static final int415 status code: Content type unsupported by this store.static final int416 status code: Range Not Satisfiable.static final int429 status code: This is the google GCS throttle message.static final int443 status code: No Response (unofficial).static final int444 status code: No Response (unofficial).static final int500 status code: Internal Server Error.static final int501 status code: method not implemented.static final int503 status code: Service Unavailable. on AWS S3: throttle response.static final int504 Gateway Timeout.static final StringName of the log for events related to the SDK V2 upgrade.static final StringName of the log for throttling events.static final StringA configuration option for test use only: maximum part count on block writes/uploads.static final StringProgress logge name; fairly noisy.static final StringDirectory marker attribute: see HADOOP-16613. -
Method Summary
-
Field Details
-
DELETE_CONSIDERED_IDEMPOTENT
public static final boolean DELETE_CONSIDERED_IDEMPOTENTThis declared delete as idempotent. This is an "interesting" topic in past Hadoop FS work. Essentially: with a single caller, DELETE is idempotent but in a shared filesystem, it is is very much not so. Here, on the basis that isn't a filesystem with consistency guarantees, retryable results in files being deleted.- See Also:
-
DRAIN_BUFFER_SIZE
public static final int DRAIN_BUFFER_SIZEsize of a buffer to create when draining the stream.- See Also:
-
RENAME_PARALLEL_LIMIT
public static final int RENAME_PARALLEL_LIMITThis is an arbitrary value: 10. It declares how many parallel copy operations in a single rename can be queued before the operation pauses and awaits completion. A very large value wouldn't just starve other threads from performing work, there's a risk that the S3 store itself would throttle operations (which all go to the same shard). It is not currently configurable just to avoid people choosing values which work on a microbenchmark (single rename, no other work, ...) but don't scale well to execution in a large process against a common store, all while separate processes are working with the same shard of storage. It should be a factor ofMAX_ENTRIES_TO_DELETEso that all copies will have finished before deletion is contemplated. (There's always a block for that, it just makes more sense to perform the bulk delete after another block of copies have completed).- See Also:
-
MAX_ENTRIES_TO_DELETE
public static final int MAX_ENTRIES_TO_DELETEThe maximum number of entries that can be deleted in any bulk delete call to S3: 1000.- See Also:
-
DEFAULT_BLOCKSIZE
public static final int DEFAULT_BLOCKSIZEDefault blocksize as used in blocksize and FS status queries: 33554432.- See Also:
-
S3A_OPENFILE_KEYS
The known keys used in a standard openFile call. -
SC_200_OK
public static final int SC_200_OK200 status code: OK.- See Also:
-
SC_301_MOVED_PERMANENTLY
public static final int SC_301_MOVED_PERMANENTLY301 status code: Moved Permanently.- See Also:
-
SC_307_TEMPORARY_REDIRECT
public static final int SC_307_TEMPORARY_REDIRECT307 status code: Temporary Redirect.- See Also:
-
SC_400_BAD_REQUEST
public static final int SC_400_BAD_REQUEST400 status code: Bad Request.- See Also:
-
SC_401_UNAUTHORIZED
public static final int SC_401_UNAUTHORIZED401 status code: Unauthorized.- See Also:
-
SC_403_FORBIDDEN
public static final int SC_403_FORBIDDEN403 status code: Forbidden.- See Also:
-
SC_403
Deprecated.403 error code.- See Also:
-
SC_404_NOT_FOUND
public static final int SC_404_NOT_FOUND404 status code: Not Found.- See Also:
-
SC_404
Deprecated.404 error code.- See Also:
-
SC_405_METHOD_NOT_ALLOWED
public static final int SC_405_METHOD_NOT_ALLOWED405 status code: Method Not Allowed.- See Also:
-
SC_409_CONFLICT
public static final int SC_409_CONFLICT409 status code: Conflict. Example: creating a bucket twice.- See Also:
-
SC_410_GONE
public static final int SC_410_GONE410 status code: Gone.- See Also:
-
SC_412_PRECONDITION_FAILED
public static final int SC_412_PRECONDITION_FAILED412 status code: Precondition Failed.- See Also:
-
SC_415_UNSUPPORTED_MEDIA_TYPE
public static final int SC_415_UNSUPPORTED_MEDIA_TYPE415 status code: Content type unsupported by this store.- See Also:
-
SC_416_RANGE_NOT_SATISFIABLE
public static final int SC_416_RANGE_NOT_SATISFIABLE416 status code: Range Not Satisfiable.- See Also:
-
SC_429_TOO_MANY_REQUESTS_GCS
public static final int SC_429_TOO_MANY_REQUESTS_GCS429 status code: This is the google GCS throttle message.- See Also:
-
SC_443_NO_RESPONSE
public static final int SC_443_NO_RESPONSE443 status code: No Response (unofficial).- See Also:
-
SC_444_NO_RESPONSE
public static final int SC_444_NO_RESPONSE444 status code: No Response (unofficial).- See Also:
-
SC_500_INTERNAL_SERVER_ERROR
public static final int SC_500_INTERNAL_SERVER_ERROR500 status code: Internal Server Error.- See Also:
-
SC_501_NOT_IMPLEMENTED
public static final int SC_501_NOT_IMPLEMENTED501 status code: method not implemented.- See Also:
-
SC_503_SERVICE_UNAVAILABLE
public static final int SC_503_SERVICE_UNAVAILABLE503 status code: Service Unavailable. on AWS S3: throttle response.- See Also:
-
SC_504_GATEWAY_TIMEOUT
public static final int SC_504_GATEWAY_TIMEOUT504 Gateway Timeout. AWS SDK considers retryable.- See Also:
-
THROTTLE_LOG_NAME
Name of the log for throttling events. Value: "org.apache.hadoop.fs.s3a.throttled".- See Also:
-
SDK_V2_UPGRADE_LOG_NAME
Name of the log for events related to the SDK V2 upgrade.- See Also:
-
X_DIRECTORY
Directory marker attribute: see HADOOP-16613. Value: "application/x-directory".- See Also:
-
UPLOAD_PART_COUNT_LIMIT
A configuration option for test use only: maximum part count on block writes/uploads. Value: "fs.s3a.internal.upload.part.count.limit".- See Also:
-
DEFAULT_UPLOAD_PART_COUNT_LIMIT
public static final int DEFAULT_UPLOAD_PART_COUNT_LIMITMaximum entries you can upload in a single file write/copy/upload. Value: 10000.- See Also:
-
AWS_REGION_SYSPROP
The system property used by the AWS SDK to identify the region.- See Also:
-
CSE_PADDING_LENGTH
public static final int CSE_PADDING_LENGTHS3 client side encryption adds padding to the content length of constant length of 16 bytes (at the moment, since we have only 1 content encryption algorithm). Use this to subtract while listing the content length when certain conditions are met.- See Also:
-
AP_REQUIRED_EXCEPTION
Error message to indicate Access Points are required to be used for S3 access.- See Also:
-
AP_INACCESSIBLE
Error message to indicate Access Points are not accessible or don't exist.- See Also:
-
ARN_BUCKET_OPTION
AccessPoint ARN for the bucket. When set as a bucket override the requests for that bucket will go through the AccessPoint.- See Also:
-
CREATE_FILE_KEYS
The known keys used in a createFile call. -
S3A_DYNAMIC_CAPABILITIES
Dynamic Path capabilities to be evaluated in the BucketInfo tool. -
AUTH_SCHEME_AWS_SIGV_4
AWS V4 Auth Scheme to use when creating signers: "aws.auth#sigv4".- See Also:
-
UPLOAD_PROGRESS_LOG_NAME
Progress logge name; fairly noisy.- See Also:
-
PRECONDITION_FAILED
AWS Error code for conditional put failure on s3 express buckets: "PreconditionFailed".- See Also:
-