AWS-CDH5.5安装 CM配置节点

在CM节点上进行安装时出现错误:

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
cloudera-manager-agent x86_64 5.5.-.cm550.p0..el6 bootstrap 4.7 M
Installing for dependencies:
MySQL-python x86_64 1.2.-0.3.c1..el6 base k
cronie x86_64 1.4.-.el6_7. updates k
cronie-anacron x86_64 1.4.-.el6_7. updates k
crontabs noarch 1.10-.el6 base k
fuse-libs x86_64 2.8.-.el6 base k
mod_ssl x86_64 :2.2.-.el6.centos updates k
mysql-libs x86_64 5.1.-.el6_6 base 1.2 M
postfix x86_64 :2.6.-.el6_7. updates 2.0 M
python-psycopg2 x86_64 2.0.-.el6 base k
redhat-lsb-core x86_64 4.0-.el6.centos base k Transaction Summary
================================================================================
Install Package(s) Total download size: 8.4 M
Installed size: M
Downloading Packages:
--------------------------------------------------------------------------------
Total 3.6 MB/s | 8.4 MB :
Running rpm_check_debug
Running Transaction Test Transaction Check Error:
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp1256.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp1257.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp850.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp852.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/cp866.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/dec8.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/geostd8.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/greek.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/hebrew.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/hp8.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/koi8r.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/koi8u.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/latin1.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/latin2.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/latin5.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/latin7.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/macce.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/macroman.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64
file /usr/share/mysql/charsets/swe7.xml from install of mysql-libs-5.1.-.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.-.el6.x86_64

原因在于装的MySQL版本中的依赖包没装,这时操作系统就安装默认的mysql-lib,结果和MySQL5.6冲突。这时需要到MySQL官网上下载MySQL5.6的其它两个包:

[root@ip---- mysql]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.27-1.el6.i686.rpm
[root@ip---- mysql]# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.27-1.el6.x86_64.rpm
[root@ip---- mysql]# ll
total
-rw-r--r-- root root Sep : MySQL-client-5.6.-.el6.x86_64.rpm
drwxr-xr-x root root Oct : mysql-connector-java-5.1.
-rw-r--r-- root root Oct : mysql-connector-java-5.1..zip
-rw-r--r-- root root Sep : MySQL-devel-5.6.-.el6.x86_64.rpm
-rw-r--r-- root root Sep : MySQL-server-5.6.-.el6.x86_64.rpm
-rw-r--r-- root root Sep : MySQL-shared-compat-5.6.-.el6.x86_64.rpm

安装:

[root@ip---- mysql]# rpm -ivh MySQL-devel-5.6.-.el6.x86_64.rpm
[root@ip---- mysql]# rpm -ivh MySQL-client-5.6.-.el6.x86_64.rpm
上一篇:详解shell中source、sh、bash、./执行脚本的区别


下一篇:Eclipse 如何重新编译程序