You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "JiaLiangC (via GitHub)" <gi...@apache.org> on 2025/03/14 11:17:11 UTC
[PR] AMBARI-26326: Fix Hive installation failures due to missing dependenc… [ambari]
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-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26326: Fix Hive installation failures due to missing dependenc… [ambari]
Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC commented on PR #3956:
URL: https://github.com/apache/ambari/pull/3956#issuecomment-2724371182
@virajjasani @zRains Could you help review this pr?
--
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-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26326: Fix Hive installation failures due to missing dependenc… [ambari]
Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #3956:
URL: https://github.com/apache/ambari/pull/3956
--
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-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26326: Fix Hive installation failures due to missing dependenc… [ambari]
Posted by "virajjasani (via GitHub)" <gi...@apache.org>.
virajjasani commented on code in PR #3956:
URL: https://github.com/apache/ambari/pull/3956#discussion_r1996419644
##########
ambari-agent/pom.xml:
##########
@@ -58,6 +58,7 @@
<commons-cli.version>1.5.0</commons-cli.version>
<commons-collections.version>3.2.2</commons-collections.version>
<commons-configuration2.version>2.8.0</commons-configuration2.version>
+ <commons-lang.version>2.6</commons-lang.version>
Review Comment:
This is required only for Hive?
--
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-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org
Re: [PR] AMBARI-26326: Fix Hive installation failures due to missing dependenc… [ambari]
Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC commented on code in PR #3956:
URL: https://github.com/apache/ambari/pull/3956#discussion_r1996493581
##########
ambari-agent/pom.xml:
##########
@@ -58,6 +58,7 @@
<commons-cli.version>1.5.0</commons-cli.version>
<commons-collections.version>3.2.2</commons-collections.version>
<commons-configuration2.version>2.8.0</commons-configuration2.version>
+ <commons-lang.version>2.6</commons-lang.version>
Review Comment:
commons-lang 2.6 is required by CredentialUtil. Another approach is to upgrade all the code in the Ambari agent that uses commons-lang.
--
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-unsubscribe@ambari.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org