josephglanville commented on issue #11303:
URL: https://github.com/apache/druid/issues/11303#issuecomment-913808482


   This appears to still be the case on master/0.22.0. The root cause appears 
to be that the WebIdentityTokenProvider isn't able to be initialised due to a 
ClassNotFound exception being raised:
   ```
   Caused by: java.lang.RuntimeException: com.amazonaws.SdkClientException: 
Unable to load AWS credentials from any provider in the chain: 
[org.apache.druid.common.aws.ConfigDrivenAwsCredentialsConfigProvider@772ef0c7: 
Unable to load AWS credentials from druid AWSCredentialsConfig, 
org.apache.druid.common.aws.LazyFileSessionCredentialsProvider@b4474bb: cannot 
refresh AWS credentials, EnvironmentVariableCredentialsProvider: Unable to load 
AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or 
AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), 
SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java 
system properties (aws.accessKeyId and aws.secretKey), 
WebIdentityTokenCredentialsProvider: To use assume role profiles the 
aws-java-sdk-sts module must be on the class path., 
com.amazonaws.auth.profile.ProfileCredentialsProvider@40d95ffc: profile file 
cannot be null, 
com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@c112365: Unauthorized
  (Service: null; Status Code: 401; Error Code: null; Request ID: null; Proxy: 
null), com.amazonaws.auth.InstanceProfileCredentialsProvider@661ec260: 
Unauthorized (Service: null; Status Code: 401; Error Code: null; Request ID: 
null; Proxy: null)]`
   ```
   
   Curiously the sts module its complaining about appears to be present in the 
s3 extension folder and loaded by Druid during startup:
   
   ```
   ization - Loading extension [druid-s3-extensions], jars: 
aws-java-sdk-core-1.12.37.jar, aws-java-sdk-sts-1.12.37.jar, 
commons-codec-1.13.jar, commons-logging-1.1.1.jar, 
druid-s3-extensions-0.22.0-SNAPSHOT.jar, httpclient-4.5.10.jar, 
httpcore-4.4.11.jar, ion-java-1.0.2.jar, jackson-dataformat-cbor-2.10.5.jar, 
jmespath-java-1.12.37.jar, joda-time-2.10.5.jar
   ```
   
   @himadrisingh did you test this feature on EKS and if so did it require any 
specific Druid configuration to work with IRSA?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to