Skip to content

Conversation

@rameeshm
Copy link
Contributor

@rameeshm rameeshm commented Feb 9, 2026

RANGER-5486: Exclude hadoop-client-api*.jar in ranger war file to avoid intermittent ranger startup failure in docker

What changes were proposed in this pull request?

Docker was failing with nested exception is java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.SignerSecretProvider.init(Ljava/util/Properties;Ljavax/servlet/ServletContext;J)V.
Change will exclude hadoop-client-api*.jar to be in the Ranger war file to avoid this issue when Ranger startup happens in Docker and avoid login issue.

How was this patch tested?

Tested in Ranger Docker

…id intermittent ranger startup failure in docker
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the security-admin Maven build to prevent hadoop-client-api JARs from being packaged into the Ranger Admin webapp, aiming to avoid intermittent startup failures (notably in Docker deployments).

Changes:

  • Excludes org.apache.hadoop:hadoop-client-api from the transitive dependencies of org.apache.ranger:ranger-metrics in security-admin.
  • Adds a WAR packaging exclude for WEB-INF/lib/hadoop-client-api-*.jar in the maven-war-plugin configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rameeshm rameeshm merged commit ee0bf9a into master Feb 10, 2026
4 of 8 checks passed
rameeshm added a commit that referenced this pull request Feb 10, 2026
#844)

* RANGER-5486: Exclude hadoop-client-api*.jar in ranger war file to avoid intermittent ranger startup failure in docker

* Update security-admin/pom.xml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Ramesh Mani <rmani@apache.org>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants