abstractdog commented on PR #6837:
URL: https://github.com/apache/hive/pull/6837#issuecomment-6606427124
I built one image on Hadoop 3.4.2 and one on 3.4.3, both with `./build.sh
-hadoop 3.4.2|3.4.3 -tez 0.10.5`.
In both, the AWS SDK classes and S3AFileSystem load through the hadoop CLI
without HADOOP_OPTIONAL_TOOLS, and the image contains exactly one SDK bundle.
```
┌───────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────┐
│ │
hadoop342-check/hive:4.3.0-SNAPSHOT │
hadoop343-check/hive:4.3.0-SNAPSHOT │
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ HADOOP_OPTIONAL_TOOLS / HADOOP_CLASSPATH │ both
unset │ both unset
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ common/lib S3 jars │
hadoop-aws-3.4.2, bundle-2.29.52, │ hadoop-aws-3.4.3,
bundle-2.35.4, │
│ │
analyticsaccelerator-s3-1.2.1, wildfly-openssl-2.1.4 │
analyticsaccelerator-s3-1.3.1, wildfly-openssl-2.2.5 │
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ S3 jars in tools/lib │ none
│ none
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ SDK bundles in the whole image │ 1
│ 1
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ Jars in /opt/hive/lib or /opt/tez containing SDK or S3A classes │ none
│ none
│
│ (loose or shaded) │
│
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ hadoop CLI loads S3AFileSystem, SdkException, S3Client, │ all
six, from hadoop-aws / bundle-2.29.52 │ all six, from
hadoop-aws / bundle-2.35.4 │
│ S3AsyncClient, AwsCredentialsProvider, S3TransferManager │
│
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ Same lookup with /opt/hive/lib first on the classpath, as the Tez │ from
common/lib │ from common/lib
│
│ AM and LLAP load it │
│
│
├───────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────────────┤
│ hadoop fs -ls s3a://… │
NoAuthWithAWSException │
NoAuthWithAWSException │
└───────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────┘
```
--
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]