見つからない?
[centos@hdp-2 ~]$ sudo yum install mysql-community-release
Loaded plugins: fastestmirror
HDP-2.6-repo-1 | 2.9 kB 00:00:00
HDP-UTILS-1.1.0.22-repo-1 | 2.9 kB 00:00:00
ambari-2.6.1.3 | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: centos-distro.1gservers.com
* extras: mirrors.sonic.net
* updates: repo1.sea.innoscale.net
No package mysql-community-release available.
Error: Nothing to do
対策:リポジトリをインストール
[centos@zzeng-hdp-2 ~]$ sudo rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
Retrieving http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
warning: /var/tmp/rpm-tmp.hGWJu5: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:mysql57-community-release-el7-8 ################################# [100%]
[centos@zzeng-hdp-2 ~]$
[centos@zzeng-hdp-2 ~]$ sudo yum install mysql-community-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: repos.lax.quadranet.com
* extras: centos.mirror.ndchost.com
* updates: mirror.sjc02.svwh.net
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-release.noarch 0:el7-7 will be installed
--> Processing Conflict: mysql57-community-release-el7-8.noarch conflicts mysql-community-release
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-8 will be updated
---> Package mysql57-community-release.noarch 0:el7-10 will be an update
--> Processing Conflict: mysql57-community-release-el7-10.noarch conflicts mysql-community-release
--> Finished Dependency Resolution
Error: mysql57-community-release conflicts with mysql-community-release-el7-7.noarch
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[centos@zzeng-hdp-2 ~]$
MySQL 5.6で対応:
* https://community.hortonworks.com/content/kbentry/174251/centos-72-ambari-2613-hdp-264-got-mysql-install-er.html
sudo yum -y install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm