You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "KWON BYUNGCHANG (Jira)" <ji...@apache.org> on 2026/07/10 00:45:00 UTC
[jira] [Created] (BIGTOP-4546) hive: hive-hbase-handler and hbase jars owned by both hive and hive-hbase packages
KWON BYUNGCHANG created BIGTOP-4546:
---------------------------------------
Summary: hive: hive-hbase-handler and hbase jars owned by both hive and hive-hbase packages
Key: BIGTOP-4546
URL: https://issues.apache.org/jira/browse/BIGTOP-4546
Project: Bigtop
Issue Type: Bug
Reporter: KWON BYUNGCHANG
The hive-hbase-handler*.jar and hbase-*.jar files under the hive lib directory are owned by both the hive and hive-hbase packages.
In hive.spec, the base %files section includes the whole %{usr_lib_hive} tree, while %files hbase lists the same jars again:
{code}
%files
...
%{usr_lib_hive}
...
%exclude %dir %{usr_lib_hive}
%exclude %dir %{usr_lib_hive}/jdbc
%exclude %{usr_lib_hive}/jdbc/hive-jdbc-*.jar
%files hbase
%defattr(-,root,root,755)
%{usr_lib_hive}/lib/hbase-*.jar
%{usr_lib_hive}/lib/hive-hbase-handler*.jar
{code}
The jdbc jars are excluded from the base package, but the hbase-related jars are not, so they end up in both packages. Consequences:
- duplicated payload in the base hive package
- removing hive-hbase does not remove the jars (still owned by hive)
- the hive-hbase subpackage split is effectively meaningless
Fix: exclude the hbase-related jars from the base package, same as jdbc:
{code}
%exclude %{usr_lib_hive}/lib/hbase-*.jar
%exclude %{usr_lib_hive}/lib/hive-hbase-handler*.jar
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)