BIGTOP-4096: Fix CVE Vulnerabilities in Hadoop Dependencies: common-compress and common-configuration2 #1259
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
fix commons-configuration2 CVE
HADOOP-19123. Update to commons-configuration2 2.10.1 due to CVE #6661
apache/hadoop#6661
fix commons-compress CVE
HADOOP-19114. Upgrade to commons-compress 1.26.1 due to CVEs. #6636
https://github.com/apache/hadoop/pull/6636/files
This PR is to resolve the compilation failure issue caused by the modification of a CVE.
HADOOP-18929. Exclude commons-compress module-info.class #6169
apache/hadoop#6169
This PR aims to solve the inconvenience of having to exclude dependencies every time a modification is made, such as after modifying the two CVEs above, by excluding all of them.
HADOOP-18916. Exclude all module-info classes from uber jars (#6131) #6188
apache/hadoop#6188
This is divided into two patches. The reason why the two CVEs were combined into one patch is that the code merged for the two CVEs is only separated by one line (LicenseBinary). After applying the first patch, the second patch would report a conflict. The modifications for HADOOP-18929 were reverted in HADOOP-18916, which adopted a better implementation, hence HADOOP-18916 is used.
How was this patch tested?
manual test ,smoke test
tested on rocky8
./docker-hadoop.sh -d -dcp --create 3 --image bigtop/puppet:trunk-rockylinux-8 --docker-compose-plugin --memory 8g --repo file:///bigtop-home/output --disable-gpg-check --stack hdfs,yarn,mapreduce --smoke-tests hdfs,yarn,mapreduce
For code changes: