JiaLiangC opened a new pull request, #4282: URL: https://github.com/apache/ambari/pull/4282
## What changes were proposed in this pull request? Installing Ranger on BIGTOP 3.3.0 still requests `ambari-infra-solr-client` when both `ranger-env/xasecure.audit.destination.solr` and `ranger-env/is_solrCloud_enabled` are `false`. A repository with all required Ranger packages but no unused Infra client therefore fails installation. This patch allows that Solr-disabled installation and preserves automatic client deployment when both Solr flags are enabled. Apply the already-existing 3.6.0 ownership model to 3.3.0: make Ranger Admin's Infra client dependency conditional and remove the duplicate client package declarations from RANGER's RPM/DEB lists. The Infra client component continues to own its package; all Ranger packages and the optional TagSync condition are retained. The cause is not a missing Ranger RPM: the shared package condition returns true for a local Ranger Admin regardless of audit flags, while 3.3.0 directly lists the Infra package. [Before: request 12/task 77](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/retry-install-ranger33-after-repository-refresh-current.json) fails with `yum -y install ambari-infra-solr-client` / `Unable to find a match`. [After: request 14](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/install-ranger33-with-conditional-solr-dependency-current.json) completes both installation tasks; [stack validation](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/stack33-valid-after-ranger-solr-dependency-fix.json) is clean. ## How was this patch tested? On this isolated branch, the following passed **23 tests**: ```sh PYTHONPATH=ambari-common/src/main/python:ambari-common/src/test/python:ambari-server/src/main/resources/stacks:ambari-server/src/test/python \ python3 -m unittest -q TestBigtop360RangerDependencies TestRangerBigtopAdvisor TestRangerBigtopProcess TestSetupRangerPluginXml ``` The complete 17-module `mvn -B org.apache.rat:apache-rat-plugin:0.18:check -Dmaven.artifact.threads=10` reactor and `git diff --check` passed. Regression coverage includes all four Solr flag combinations, package ownership/preservation on RPM/DEB platforms, and corresponding 3.6.0 behavior. The combined integration branch's related group passed 25 tests. Runtime results come from a fresh **BIGTOP 3.3.0 / Rocky 8** cluster using the combined integration branch, including PRs #4278/#4279/#4280 and both follow-ups AMBARI-26688/26689. They are separate from each PR's isolated source tests. Actual uploaded Ranger binaries were **2.4.0-1.el8**; the stack advertises 2.6.0-1, and Ranger 2.6.0 binaries were not tested. No ecosystem component or Ambari RPM was rebuilt. The combined run passed 8 plain authorization cases, 12 Kerberos cases, and 18 exact native audit decision matches. Anonymous WebHDFS returns 401/Negotiate; Hive rejects PLAIN SASL. Ordinary ticket-cache `hdfs` and Beeline clients passed. Final state: 3 HEALTHY hosts, 20 STARTED + 24 INSTALLED components, no stale configs/active requests, and supervised NodeManager recovery restored true. Real disk-capacity alerts remain visible. [Immutable evidence index](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/README.md) | [Exact source heads](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/source-validation.json) | [Final state](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/FINAL33-acceptance.json) | [Kerberos audit](https://github.com/JiaLiangC/ambari/blob/341a3d1a5f35aea26f7a27be01149c2d7dd0c684/validation/bigtop330-20261203/KERBEROS-AUDIT-acceptance.json)   Please review [Ambari Contributing Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
