在CM节点上进行安装时出现错误:
================================================================================ Package Arch Version Repository Size ================================================================================ Installing: cloudera-manager-agent x86_64 5.5.0-1.cm550.p0.61.el6 bootstrap 4.7 M Installing for dependencies: MySQL-python x86_64 1.2.3-0.3.c1.1.el6 base 86 k cronie x86_64 1.4.4-15.el6_7.1 updates 74 k cronie-anacron x86_64 1.4.4-15.el6_7.1 updates 31 k crontabs noarch 1.10-33.el6 base 10 k fuse-libs x86_64 2.8.3-4.el6 base 74 k mod_ssl x86_64 1:2.2.15-47.el6.centos updates 95 k mysql-libs x86_64 5.1.73-5.el6_6 base 1.2 M postfix x86_64 2:2.6.6-6.el6_7.1 updates 2.0 M python-psycopg2 x86_64 2.0.14-2.el6 base 100 k redhat-lsb-core x86_64 4.0-7.el6.centos base 25 k Transaction Summary ================================================================================ Install 11 Package(s) Total download size: 8.4 M Installed size: 50 M Downloading Packages: -------------------------------------------------------------------------------- Total 3.6 MB/s | 8.4 MB 00:02 Running rpm_check_debug Running Transaction Test Transaction Check Error: file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp1256.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp1257.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp850.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp852.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/cp866.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/dec8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/geostd8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/greek.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/hebrew.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/hp8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/koi8r.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/koi8u.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/latin1.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/latin2.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/latin5.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/latin7.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/macce.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/macroman.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64 file /usr/share/mysql/charsets/swe7.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.27-1.el6.x86_64
原因在于装的MySQL版本中的依赖包没装,这时操作系统就安装默认的mysql-lib,结果和MySQL5.6冲突。这时需要到MySQL官网上下载MySQL5.6的其它两个包:
[root@ip-172-31-30-175 mysql]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.27-1.el6.i686.rpm [root@ip-172-31-30-175 mysql]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.27-1.el6.x86_64.rpm
[root@ip-172-31-30-175 mysql]# ll total 84180 -rw-r--r-- 1 root root 18596528 Sep 21 16:32 MySQL-client-5.6.27-1.el6.x86_64.rpm drwxr-xr-x 4 root root 4096 Oct 6 17:24 mysql-connector-java-5.1.37 -rw-r--r-- 1 root root 4272618 Oct 6 13:24 mysql-connector-java-5.1.37.zip -rw-r--r-- 1 root root 3392620 Sep 21 16:32 MySQL-devel-5.6.27-1.el6.x86_64.rpm -rw-r--r-- 1 root root 55950588 Sep 21 16:33 MySQL-server-5.6.27-1.el6.x86_64.rpm -rw-r--r-- 1 root root 3969800 Sep 21 16:33 MySQL-shared-compat-5.6.27-1.el6.x86_64.rpm
安装:
[root@ip-172-31-30-175 mysql]# rpm -ivh MySQL-devel-5.6.27-1.el6.x86_64.rpm [root@ip-172-31-30-175 mysql]# rpm -ivh MySQL-client-5.6.27-1.el6.x86_64.rpm