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

   …ies and Java version compatibility issues
   
   ## What changes were proposed in this pull request?
   
   When installing Hive through Ambari, the following errors occur:
    
   1. Missing dependency error:
   ```
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/lang/StringUtils
   at 
org.apache.ambari.server.credentialapi.CredentialUtil.getNormalizedPath(CredentialUtil.java:241)
   at 
org.apache.ambari.server.credentialapi.CredentialUtil.run(CredentialUtil.java:166)
   at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:81)
   at 
org.apache.ambari.server.credentialapi.CredentialUtil.main(CredentialUtil.java:104)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.lang.StringUtils
   ```
    
   2. Java version compatibility issue:
   The CredentialUtil class is compiled with Java 17, but the params.py script 
is using Java 8 paths, causing execution failures during credential retrieval.
    
   
   Impact
   These issues prevent successful installation of Hive service, blocking 
cluster deployment and service configuration.
    
   Root Cause
   1. The commons-lang dependency is missing from the ambari-agent package, 
which is required by CredentialUtil.
   2. There's a Java version mismatch - CredentialUtil is compiled with Java 17 
but the credential retrieval process is trying to use Java 8.
    
   Priority
   High - This is a blocker for Hive service installation.
   
   ## How was this patch tested?
   manual test
   <img width="1371" alt="image" 
src="https://github.com/user-attachments/assets/e5326049-9449-4f16-a3ff-0e87934c1711";
 />
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   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: dev-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org
For additional commands, e-mail: dev-h...@ambari.apache.org

Reply via email to