Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
Cloudera Employee
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install mysql-community-release' returned 1. Error: Nothing to do

Ambari got the error above.

Try install mysql directly:

[centos@zzeng-hdp-2 ~]$ sudo yum install mysql-community-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.web-ster.com
 * extras: mirror.hostduplex.com
 * updates: mirrors.sonic.net
No package mysql-community-release available.
Error: Nothing to do

https://bugs.mysql.com/bug.php?id=81037

Try MySQL 5.7

[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 ~]$

This still didn't resolve the problem.

At last, I tried to use MySQL 5.6 ( http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm )

[centos@zzeng-hdp-2 ~]$ sudo yum remove mysql57-community-release
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-8 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================================================
 Package  Arch  Version  Repository  Size
============================================================================================================================================================================================================================================
Removing:
 mysql57-community-release  noarch  el7-8  installed  8.2 k

Transaction Summary
============================================================================================================================================================================================================================================
Remove  1 Package

Installed size: 8.2 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing  : mysql57-community-release-el7-8.noarch  1/1
warning: /etc/yum.repos.d/mysql-community.repo saved as /etc/yum.repos.d/mysql-community.repo.rpmsave
  Verifying  : mysql57-community-release-el7-8.noarch  1/1

Removed:
  mysql57-community-release.noarch 0:el7-8

Complete!

[centos@zzeng-hdp-2 ~]$ sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
Preparing...  ################################# [100%]
Updating / installing...
  1:mysql-community-release-el7-5  ################################# [100%]
[centos@zzeng-hdp-2 ~]$
1,069 Views
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎02-24-2018 02:42 PM
Updated by:
 
Contributors
Top Kudoed Authors