JiaLiangC opened a new pull request, #4278:
URL: https://github.com/apache/ambari/pull/4278

   [JIRA: AMBARI-26685](https://issues.apache.org/jira/browse/AMBARI-26685)
   
   ## What changes were proposed in this pull request?
   
   On a fresh Rocky Linux 9 cluster using the BIGTOP 3.6.0 stack merged in 
#4277,
   provisioning fails before services are usable at three successive boundaries.
   The proposed fixes allow ordinary installation and schema initialization to 
finish
   without replacing compiled component payloads or disabling validation.
   
   ### Observed problems and root causes
   
   | Trigger | Observed failure | Cause and correction |
   | --- | --- | --- |
   | Blueprint includes YARN and MAPREDUCE2 | HTTP 500: `Configuration with tag 
'INITIAL' exists for 'yarn-env'` | The child MAPREDUCE2 declaration defaults to 
the shared `configuration` directory and also claims YARN's override. Retain 
`configuration-mapred` explicitly. |
   | RPM host already has curl-minimal | `yum -y install curl` fails because 
curl-minimal conflicts with curl | The shared before-INSTALL hook requests the 
full package unconditionally. On Red Hat-family hosts, retain the installed 
curl-minimal package using the documented rpm query status. |
   | Hive execution hook configuration contains only whitespace | SYS 
schematool fails with generic query/schema errors; the initiating Hive log 
shows `ClassNotFoundException` for an empty hook class | Normalize 
pre/post/failure hook lists before XML rendering, discard empty tokens and 
preserve valid class order and unrelated properties. |
   
   The MapReduce override is still absent from the merged trunk at
   `fffc0b8e16`; this is a follow-up to AMBARI-26684, not a request to reopen 
its
   completed stack-support deliverable. The curl and Hive changes affect shared
   BIGTOP installation code as well.
   
   ### Reproduction
   
   1. On the merged stack, query `StackServices/config_types` for YARN and 
MAPREDUCE2, then create a Blueprint containing both. Observe yarn-env being 
attributed to both services and the duplicate INITIAL configuration error.
   2. Install a component on the official Rocky 9 slave-derived test host with 
curl-minimal already present. The before-INSTALL hook tries the conflicting 
full curl package.
   3. Set `hive.exec.post.hooks` to a single space and initialize a fresh Hive 
4 SYS schema. Inspect the Hive diagnostic exception as well as the generic 
schematool failure. Repeat after applying hook normalization.
   
   The whitespace value's origin upstream of the observed desired configuration 
is
   not assumed. Changing the Hive JVM alone did not fix that class-loading 
failure.
   
   ## How was this patch tested?
   
   The isolated branch is based on merged trunk `fffc0b8e16`; **25 focused 
tests passed**.
   
   ```bash
   PYTHONPATH=ambari-common/src/main/python:ambari-server/src/test/python 
python3 -m unittest -q TestBigtop360Stack TestBeforeInstallCurlPackage 
TestHiveHookProperties
   ```
   
   Combined runtime: the fresh deployment completed 35/35 installation tasks, 
Hive SYS initialization completed, and a real JDBC SELECT 1 returned the 
expected row.
   
   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).
   
   - [Duplicate yarn-env 
failure](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/installation/install-fresh-cluster-receipt.json)
   - [Corrected 
ownership](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/installation/mapreduce-config-ownership-after.json)
   - [curl 
conflict](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/installation/request10-task-57-failure.json)
   - [Initiating Hive hook 
exception](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/installation/hive-schema-query-failure.json)
   - [Successful Hive 
query](https://github.com/JiaLiangC/ambari/blob/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/installation/hive-baseline-select-one.json)
   
   ### Screenshots
   
   ![ Recorded installation recovery summary 
](https://raw.githubusercontent.com/JiaLiangC/ambari/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/screenshots/installation-recorded-evidence.png)
   
   ![ Live three-node BIGTOP 3.6.0 host view 
](https://raw.githubusercontent.com/JiaLiangC/ambari/650390b512ffd5d476760dee7345aff772f49dce/validation/bigtop360-20261203/screenshots/ambari-hosts.png)
   
   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]

Reply via email to