ramackri commented on code in PR #980:
URL: https://github.com/apache/ranger/pull/980#discussion_r3379912189
##########
distro/src/main/assembly/pdp.xml:
##########
@@ -33,6 +33,7 @@
<include>org.apache.ranger:authz-embedded</include>
<include>org.apache.ranger:ranger-audit-core</include>
<include>org.apache.ranger:ranger-audit-dest-auditserver</include>
+ <include>org.apache.ranger:ranger-audit-dest-solr</include>
Review Comment:
Fixing the blow issue
The job is failing in the services-docker-build step with this critical
error:
`
java.lang.ClassNotFoundException:
org.apache.ranger.audit.destination.SolrAuditDestination
`
The Ranger PDP (Policy Decision Point) container is unable to initialize
because the SolrAuditDestination class is missing from the classpath when the
application starts up.
Root Cause
The SolrAuditDestination class is not being included in the built artifacts
or Docker image. This typically happens when:
A required dependency is not properly declared in the POM
The jar containing this class is not being packaged into the distribution
tarball
The Docker image build is not copying all necessary jars into the container
Solution
Check the PDP module's POM configuration to ensure the audit-related
dependencies are properly included:
Verify that ranger-audit-core or the module containing SolrAuditDestination
is listed as a dependency in the PDP module's pom.xml
Ensure the dependency is not marked with <scope>provided</scope> when it
should be bundled
Check that the assembly/packaging configuration includes audit jars in the
final distribution
Example fix in the PDP module's pom.xml:
XML
<dependency>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-audit-core</artifactId>
<version>${project.version}</version>
</dependency>
Verify the Docker image includes audit jars:
Check the dev-support/ranger-docker/Dockerfile or Docker entrypoint scripts
to ensure all required jars are copied into the container's lib directory,
particularly audit-related dependencies.
The logs confirm the class is being referenced in configuration but not
available at runtime, suggesting a packaging/dependency issue rather than a
code logic problem.
--
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]