JiaLiangC opened a new pull request, #4280: URL: https://github.com/apache/ambari/pull/4280
[JIRA: AMBARI-26687](https://issues.apache.org/jira/browse/AMBARI-26687) ## What changes were proposed in this pull request? After managed Kerberos enablement on BIGTOP 3.6.0/Hadoop 3.4.3, three source assumptions block startup: DataNode GC logging uses the privileged launcher's account, secure process validation expects that root UID after privilege drop, and ResourceManager uses localhost for a ZooKeeper service registered by FQDN. The fixes make the secure services start and allow authenticated HDFS/Hive requests to be verified against Ranger policies. ### Failures, causes and fixes | Failure | Cause | Proposed correction | | --- | --- | --- | | DataNode wrapper reports a priority failure; the JVM error file reports invalid Xlog path `/var/log/hadoop/root/gc-datanode.log` | The environment template expands USER while the privileged launcher is root | Render only the DataNode GC path with the configured HDFS daemon account. | | `Refusing process ...: owner does not match service user root` | The real jsvc child is owned by hdfs, while its published PID file is root-owned | Separate root execution/PID ownership from the dropped daemon UID. Keep exact class, component marker and PID reuse validation for recovery, status and stop. | | ResourceManager exits with AuthFailed for `/rmstore`; KDC reports missing `zookeeper/localhost` | `hadoop.zk.address` retains localhost despite the managed FQDN ensemble | Recommend the managed ZooKeeper host/client-port quorum through the existing topology helper. Preserve external or unassigned-service configurations. | AMBARI-14378 recorded a similar historical localhost issue for AMS; this change addresses the current BIGTOP ResourceManager hadoop.zk.address property and does not reopen the old AMS-specific fix. ### Reproduction 1. Enable managed MIT Kerberos with FQDN-based service principals and privileged DataNode ports. 2. Start a DataNode and inspect the privileged JVM error output. After fixing the GC path, inspect PID-file ownership and the actual child UID/class in /proc to reproduce the second validation failure. 3. Leave the inherited RM hadoop.zk.address at localhost:2181 and start RM. Inspect the actual web/RPC readiness and KDC service-name error, not only the initial process detection. 4. Apply the fixes, restart the services and confirm authenticated NameNode/RM JSON APIs report three live DataNodes and three RUNNING NodeManagers. ## How was this patch tested? The isolated branch is based on merged trunk `fffc0b8e16`; **215 focused tests passed**. ```bash PYTHONPATH=ambari-common/src/main/python:ambari-server/src/main/resources/stacks:ambari-server/src/test/python python3 -m unittest -q TestKerberosBigtop TestHdfsBigtop TestHdfsSecureGcLog TestYarnKerberosQuorum TestYarnBigtopWorkflows ``` Combined runtime: three authenticated DataNodes and three RUNNING NodeManagers were verified through JSON APIs. A normal secure DataNode restart passed. HDFS/Hive each passed six cases (allow, deny, no ticket, username hint spoofing, live revoke, restore); ten authorization cases match native Ranger audits. Anonymous WebHDFS returns 401/Negotiate, Hive rejects PLAIN SASL, and ordinary hdfs/Beeline clients pass with a ticket cache. The runtime contains all three related fix sets together; these results are separate from the isolated branch checks. No component recompilation or full Ambari Maven build is claimed. ### Public evidence [Immutable evidence index](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/README.md) and [exact branch/check metadata](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/source-validation.json). - [DataNode privileged JVM output](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/secure-datanode-log-tail.json) - [Actual child and PID ownership](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/secure-datanode-process-identity.json) - [RM localhost endpoint and KDC diagnosis](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/resource-manager-zookeeper-address-before.json) - [Authenticated infrastructure readiness](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/SECURE-INFRASTRUCTURE-acceptance.json) - [Secure DataNode restart lifecycle](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/verify-secure-datanode-restart-lifecycle-current.json) - [Final ticket and access acceptance](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/FINAL-KERBEROS-acceptance.json) - [Native audit correlation](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/KERBEROS-AUDIT-acceptance.json) - [Anonymous/plain protocol rejection](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/kerberos/UNAUTHENTICATED-ENDPOINTS-acceptance.json) ### Screenshots   Application captures show the current UI; recorded-evidence screenshots render saved audit/client data. Active alert-worker Environment errors remain visible and are [tracked separately](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/follow-ups/kerberos-alert-context.json); these source changes do not claim to fix alert monitoring. 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]
