Hive Client Install: RuntimeError: Failed to execute command '/usr/bin/zypper install --auto-agree-with-licenses --no-confirm mysql-client', exited with code '106', message: '[22;27;31;49mError building the cache:
Hi All,
Downloaded ambari 2.7.0.0 from http://public-repo-1.hortonworks.com/ambari/sles12/2.x/updates/2.7.0.0/ambari.repo
Downloaded the tarballs from https://docs.cloudera.com/HDPDocuments/Ambari-2.7.1.0/bk_ambari-installation/content/hdp_30_repositories.html
Using Local Repository. Using postgresql for ambari, druid, hive, oozie, ranger and rangerkms.
SLES 12 SP5
In the Install phase, i get to Hive Client Install, it fails with this error:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_client.py", line 60, in <module>
HiveClient().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_client.py", line 39, in install
self.install_packages(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 836, in install_packages
retry_count=agent_stack_retry_count)
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/packaging.py", line 30, in action_install
self._pkg_manager.install_package(package_name, self.__create_context())
File "/usr/lib/ambari-agent/lib/ambari_commons/repo_manager/zypper_manager.py", line 203, in install_package
shell.repository_manager_executor(cmd, self.properties, context)
File "/usr/lib/ambari-agent/lib/ambari_commons/shell.py", line 749, in repository_manager_executor
raise RuntimeError(message)
RuntimeError: Failed to execute command '/usr/bin/zypper install --auto-agree-with-licenses --no-confirm mysql-client', exited with code '106', message: '[22;27;31;49mError building the cache:
[SMT-http_SAP-SDO-DEV__com:SLE-HA12-SP5-Pool|http://sap-sdo-dev..com/repo/SUSE/Products/SLE-HA/12-SP5/x86_64/product?credentials=SMT-http_SAP-SDO-DEV__com ] Valid metadata not found at specified URL[0m
[22;27;31;49mError building the cache:
[SMT-http_SAP-SDO-DEV__com:SLE12-SP5-SAP-Pool|http://sap-sdo-dev..com/repo/SUSE/Products/SLE-SAP/12-SP5/x86_64/product?credentials=SMT-http_SAP-SDO-DEV__com ] Valid metadata not found at specified URL[0m
[22;27;31;49mError building the cache:
[SMT-http_SAP-SDO-DEV__com:SLES12-SP5-Pool|http://sap-sdo-dev..com/repo/SUSE/Products/SLE-SERVER/12-SP5/x86_64/product?credentials=SMT-http_SAP-SDO-DEV__com ] Valid metadata not found at specified URL[0m
[22;27;31;49mSome of the repositories have not been refreshed because of an error.[0m
when i zypper install mysql-client:
Loading repository data...
Reading installed packages...
'mysql-client' not found in package names. Trying capabilities.
'mysql-community-client' providing 'mysql-client' is already installed.
Resolving package dependencies...
Nothing to do.
Tried to rety, same issue.
Edited the metadata.xml from /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE and /var/lib/ambari-server/resources/common-services/HIVE/0.12.0.2.0 to remove any mysql
same issue.
Not sure what else to do, at first i used mysql as the db for ambari, , druid, hive, oozie, ranger and rangerkms but got the error above, so i uninstalled mysql, and installed postgresql 12.But there is a config file somewhere that wants to install mysql-client and it won't let me get past this step without installing it.
Thanks in advance.
Cheers,
Chris

