You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jialiang Cai (Jira)" <ji...@apache.org> on 2025/03/14 11:11:00 UTC
[jira] [Updated] (AMBARI-26326) Fix Hive installation failures due to missing dependencies and Java version compatibility issues
[ https://issues.apache.org/jira/browse/AMBARI-26326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jialiang Cai updated AMBARI-26326:
----------------------------------
Description:
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.
> Fix Hive installation failures due to missing dependencies and Java version compatibility issues
> ------------------------------------------------------------------------------------------------
>
> Key: AMBARI-26326
> URL: https://issues.apache.org/jira/browse/AMBARI-26326
> Project: Ambari
> Issue Type: Bug
> Reporter: Jialiang Cai
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org