geyanggang opened a new issue, #15051:
URL: https://github.com/apache/gravitino/issues/15051

   ### What would you like to be improved?
   
   `hadoop-client-runtime` 3.3.6 shades Apache Avro 1.7.7 under 
`org/apache/hadoop/shaded/org/apache/avro/`. #14532 strips this copy from the 
server-side runtime libraries with `StripShadedAvroTransform`, but the 
transform only covers the projects in `shadedAvroStrippedProjects`. The AWS, 
Azure, GCP, Aliyun and Tencent bundles shade `hadoop-client-runtime` into their 
jars, so each bundle still ships the outdated Avro 1.7.7 classes.
   
   Within Hadoop, the shaded Avro only backs Avro serialization (SequenceFile, 
MapReduce job history, `hadoop fs -text`). The bundles do not use these code 
paths.
   
   ### How should we improve?
   
   Exclude `org/apache/hadoop/shaded/org/apache/avro/**` and 
`META-INF/maven/org.apache.avro/**` from the shaded jars of the five bundles, 
and remove the matching entries from `.github/trivy/trivyignore.yaml`.
   
   The artifact transform cannot be reused here: the shadow plugin resolves the 
dependency files while it builds the task graph, before the project jars exist, 
so the transform fails on the bundle classpaths.
   


-- 
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]

Reply via email to