-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74380/
-----------------------------------------------------------

(Updated April 14, 2023, 1:40 a.m.)


Review request for ranger and Madhan Neethiraj.


Bugs: RANGER-4166
    https://issues.apache.org/jira/browse/RANGER-4166


Repository: ranger


Description
-------

The root cause of this issue is an encoding bug caused by the outdated 
compression library dependency in the assembly-plugin of ranger. I have added 
the detailed analysis and the steps to reproduce the issue stably to this link.

https://issues.apache.org/jira/browse/RANGER-4166


Diffs (updated)
-----

  pom.xml d658bf985 


Diff: https://reviews.apache.org/r/74380/diff/2/

Changes: https://reviews.apache.org/r/74380/diff/1-2/


Testing
-------

how to test:
1.To reproduce the error, compile using the following command without making 
any modifications.
mvn clean compile package install assembly:single  -Dmaven.test.skip=true 
-DskipTests=true  -Dfindbugs.skip=true -Dcheckstyle.skip=true   
-Djacoco.skip=true -Dpmd.skip=true -Drat.skip=true  -Dspotbugs.skip=true  
-Dhadoop.version=3.3.4  -Dhbase.version=2.4.13  -Dhive.version=3.1.3  
-Dkafka.version=2.8.1  -Dsolr.version=8.11.2  -Dzookeeper.version=3.6.4

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project 
ranger-distro: Failed to create assembly: Error creating assembly archive 
schema-registry-plugin: IOException when zipping 
rMETA-INF/maven/org.apache.ranger/ranger-distro/pom.properties: invalid code 
lengths set -> [Help 1]

2.apply this patch , and continue to compile using the above command. The error 
disappears and the compilation can proceed smoothly.


File Attachments
----------------

0002-RANGER-4166-Ranger2.x-may-build-failed
  
https://reviews.apache.org/media/uploaded/files/2023/04/14/5257d9f9-ed39-4fc5-8ab9-db1cd2d67bed__0002-RANGER-4166-Ranger2.x-may-build-failed.patch


Thanks,

jialiang cai

Reply via email to