为什么HDP在我选择现有mysql的同时安装mysql [英] why HDP install mysql while I have chose existing mysql

查看:151
本文介绍了为什么HDP在我选择现有mysql的同时安装mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Ambari 2.5.0.3安装HDP 2.6,该错误在Hive客户端安装中显示.错误日志:

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

我选择了现有的mysql数据库,为什么ambari仍尝试安装? 还是可以在上面的选项中选择"2"?

I have chose exisiting mysql database,why ambari still try to install ? or is there anyway to choose the "2" in above option?

推荐答案

您从非默认系统存储库安装了mysql. Ambari不会检查是否已安装软件包,它只会在群集部署期间(或在添加服务/主机时)为每个服务安装软件包.

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).

包依赖性在metainfo.xml文件中定义.您可以尝试找到相关的Ambari服务元信息文件,并尝试使用服务依赖项定义.看起来像

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

    <osSpecific>
      <osFamily>suse</osFamily>
      <packages>
        <package>
          <name>mysql-client</name>
        </package>
      </packages>
    </osSpecific>

metainfo.xml文件可能位于两个位置.确保选择正确的文件.

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

  • 默认服务元信息/var/lib/ambari-server/resources/common-services/<service name>/<service version>/metainfo.xml
  • 每个堆栈覆盖/var/lib/ambari-server/resources/stacks/<stack id>/<stack version>/services/<service name>/metainfo.xml
  • default service metainfo /var/lib/ambari-server/resources/common-services/<service name>/<service version>/metainfo.xml
  • per-stack overrides /var/lib/ambari-server/resources/stacks/<stack id>/<stack version>/services/<service name>/metainfo.xml

别忘了重新启动ambari-server!它会在启动时读取服务定义.

相关EPIC的附件说明了继承的逻辑 https://issues.apache.org/jira/browse/AMBARI-7201

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

这篇关于为什么HDP在我选择现有mysql的同时安装mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆