You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org> on 2026/04/29 05:31:35 UTC
[kudu-CR] KUDU-3769 Upgrade Ranger from 2.1 to 2.6
Hello Zoltan Chovan, Zoltan Martonka, Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/24242
to look at the new patch set (#3).
Change subject: KUDU-3769 Upgrade Ranger from 2.1 to 2.6
......................................................................
KUDU-3769 Upgrade Ranger from 2.1 to 2.6
This patch upgrades the Apache Ranger and Ranger KMS dependencies from
2.1.0 to 2.6.0. To support this upgrade, several adaptations were
required in the Kudu MiniRanger test framework:
Ranger Admin & KMS Classpath:
- Updated the Ranger KMS classpath to include 'ews/lib/*' and
'ews/webapp/WEB-INF/lib/*'. This is required to find the
EmbeddedServer class and JAXB dependencies (required for Java 11+)
which were moved in the Ranger 2.6.0 directory restructuring.
User Management:
- Ranger 2.6.0 now enforces that users must exist in the Ranger
database before a policy can be created for them. Updated
MiniRanger::AddPolicy to automatically create unique users
prior to policy submission.
Test Assertions:
- Ranger 2.6.0 automatically generates a default "EXPIRES_ON" tag
policy upon service creation. Updated policy count assertions to
use the '?serviceName=kudu' filter to ensure tests only count
explicitly created Kudu policies.
Configurations:
- Added 'ranger.spnego.kerberos.name.rules' to support proper
principal mapping during Kerberos authentication needed for fetching
the policies.
- Added the mandatory configurations - JPA/JDBC connection properties
(timeouts, validation query, and PostgreSQL dialect) to
ranger-admin-default-site.xml.
Logging Migration (Log4j to Logback):
- Ranger 2.6 migrated its internal logging engine from Log4j 1.x to Logback.
Consequently, the legacy 'log4j.properties' template was ignored, causing
the Ranger Admin server to fall back to default DEBUG logging on stdout,
which spammed the test console.
- Replaced GetRangerLog4jProperties() with GetRangerLogbackXml() to
generate a valid Logback configuration.
Change-Id: I0923669abef6512ba9a53b985a3570af9fcc1f19
---
M java/gradle/dependencies.gradle
M src/kudu/ranger-kms/mini_ranger_kms.h
M src/kudu/ranger/mini_ranger-test.cc
M src/kudu/ranger/mini_ranger.cc
M src/kudu/ranger/mini_ranger.h
M src/kudu/ranger/mini_ranger_configs.h
M thirdparty/vars.sh
7 files changed, 119 insertions(+), 74 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/42/24242/3
--
To view, visit http://gerrit.cloudera.org:8080/24242
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0923669abef6512ba9a53b985a3570af9fcc1f19
Gerrit-Change-Number: 24242
Gerrit-PatchSet: 3
Gerrit-Owner: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>
Gerrit-Reviewer: Zoltan Martonka <zm...@cloudera.com>