安装mysql出现confirm,为什么HDP在我选择现有mysql的同时安装mysql

在使用Ambari2.5.0.3安装HDP2.6过程中,遇到了Hive客户端安装时的错误,错误信息显示MySQL社区客户端与已安装的版本存在冲突。解决方案包括卸载现有MySQL客户端或不安装指定版本。博客建议检查Ambari服务的元信息文件并尝试修改服务依赖定义,以解决此冲突。注意Ambari不会检查已安装的包,而是会在集群部署或添加服务时安装所有所需包。
摘要由CSDN通过智能技术生成

I am installing HDP 2.6 via Ambari 2.5.0.3,the error shows in Hive client install.the error logs:

resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/zypper --quiet install --auto-agree-with-licenses --no-confirm mysql-client' returned 4. Problem: mysql-community-client-5.7.17-1.sles11.x86_64 conflicts with namespace:otherproviders(mysql-client) provided by mysql-client-5.5.31-0.7.10.x86_64

Solution 1: Following actions will be done:

deinstallation of mysql-community-client-5.7.17-1.sles11.x86_64

deinstallation of mysql-community-server-5.7.17-1.sles11.x86_64

Solution 2: do not install mysql-client-5.5.31-0.7.10.x86_64

Choose from above solutions by number or cancel [1/2/c] (c): c

I have chose exisiting mysql database,why ambari still try to install ?

or is there anyway to choose the "2" in above option?

解决方案

You installed mysql from a non-default system repository. Ambari does not check if packages are already installed, it just installs packages for every service during cluster deployment (or when adding a service/host).

Package dependencies are defined at metainfo.xml files. You may try to find the relevant Ambari service metainfo file and play around service dependency definition. It looks like

suse

mysql-client

metainfo.xml files may be located at two locations. Make sure to choose the right file.

default service metainfo /var/lib/ambari-server/resources/common-services///metainfo.xml

per-stack overrides /var/lib/ambari-server/resources/stacks///services//metainfo.xml

Don't forget to restart ambari-server! It reads service definitions on start.

There is an attachment to related EPIC that explains the logic of inheritance https://issues.apache.org/jira/browse/AMBARI-7201

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值