1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <?xml-stylesheet type =" text/xsl" href =" configuration.xsl" ?>
3
+ <!--
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License. See accompanying LICENSE file.
15
+ -->
16
+
17
+ <!-- Put site-specific property overrides in this file. -->
18
+
19
+ <configuration >
20
+ <property >
21
+ <name >fs.s3a.aws.credentials.provider</name >
22
+ <value >
23
+ org.apache.hadoop.fs.s3a.TemporaryAWSCredentialsProvider,
24
+ org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider,
25
+ com.amazonaws.auth.EnvironmentVariableCredentialsProvider,
26
+ com.amazonaws.auth.InstanceProfileCredentialsProvider,
27
+ com.amazonaws.auth.WebIdentityTokenCredentialsProvider
28
+ </value >
29
+ <description >
30
+ Comma-separated class names of credential provider classes which implement
31
+ com.amazonaws.auth.AWSCredentialsProvider.
32
+
33
+ When S3A delegation tokens are not enabled, this list will be used
34
+ to directly authenticate with S3 and DynamoDB services.
35
+ When S3A Delegation tokens are enabled, depending upon the delegation
36
+ token binding it may be used to communicate with the STS endpoint to
37
+ request session/role credentials.
38
+
39
+ These are loaded and queried in sequence for a valid set of credentials.
40
+ Each listed class must implement one of the following means of
41
+ construction, which are attempted in order:
42
+ * a public constructor accepting java.net.URI and
43
+ org.apache.hadoop.conf.Configuration,
44
+ * a public constructor accepting org.apache.hadoop.conf.Configuration,
45
+ * a public static method named getInstance that accepts no
46
+ arguments and returns an instance of
47
+ com.amazonaws.auth.AWSCredentialsProvider, or
48
+ * a public default constructor.
49
+
50
+ (DISABLED) Specifying org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider
51
+ allows anonymous access to a publicly accessible S3 bucket without any
52
+ credentials. Please note that allowing anonymous access to an S3 bucket
53
+ compromises security and therefore is unsuitable for most use cases. It can
54
+ be useful for accessing public data sets without requiring AWS credentials.
55
+
56
+ If unspecified, then the default list of credential provider classes,
57
+ queried in sequence, is:
58
+ * org.apache.hadoop.fs.s3a.TemporaryAWSCredentialsProvider: looks
59
+ for session login secrets in the Hadoop configuration.
60
+ * org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider:
61
+ Uses the values of fs.s3a.access.key and fs.s3a.secret.key.
62
+ * com.amazonaws.auth.EnvironmentVariableCredentialsProvider: supports
63
+ configuration of AWS access key ID and secret access key in
64
+ environment variables named AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,
65
+ and AWS_SESSION_TOKEN as documented in the AWS SDK.
66
+ * com.amazonaws.auth.InstanceProfileCredentialsProvider: picks up
67
+ IAM credentials of any EC2 VM or AWS container in which the process is running.
68
+ </description >
69
+ </property >
70
+ </configuration >
0 commit comments