Created on 06-17-2017 03:41 AM - edited 09-16-2022 04:46 AM
[root@repository ~]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.exabytes.com.my * extras: centos.exabytes.com.my * updates: centos.exabytes.com.my http://centos/yum/HDP/centos6/2.x/updates/2.1.10.0/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. http://centos/yum/HDP-UTILS-1.1.0.19/repos/centos6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. http://centos/yum/AMBARI-2.2.2.0/centos6/2.2.2.0-460/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. repo id repo name status HDP-2.1 HDP-2.1 98 HDP-UTILS-1.1.0.19 HDP-UTILS-1.1.0.19 48 Updates-ambari-2.2.0.0 ambari-2.2.0.0 - Updates 8 base CentOS-6 - Base 6,706 extras CentOS-6 - Extras 45 mysql-connectors-community MySQL Connectors Community 36 mysql-tools-community MySQL Tools Community 47 mysql56-community MySQL 5.6 Community Server 358 updates CentOS-6 - Updates 358 repolist: 7,704 [root@repository ~]# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.exabytes.com.my * extras: centos.exabytes.com.my * updates: centos.exabytes.com.my HDP-2.1 | 2.9 kB 00:00 HDP-UTILS-1.1.0.19 | 2.9 kB 00:00 Updates-ambari-2.2.0.0 | 2.9 kB 00:00 repo id repo name status HDP-2.1 HDP-2.1 98 HDP-UTILS-1.1.0.19 HDP-UTILS-1.1.0.19 48 Updates-ambari-2.2.0.0 ambari-2.2.0.0 - Updates 8 base CentOS-6 - Base 6,706 extras CentOS-6 - Extras 45 mysql-connectors-community MySQL Connectors Community 36 mysql-tools-community MySQL Tools Community 47 mysql56-community MySQL 5.6 Community Server 358 updates CentOS-6 - Updates 358 repolist: 7,704 [root@repository ~]#
Created 06-18-2017 04:22 PM
It went fine after restart httpd service went fine
[root@repository ~]# service httpd status httpd (pid 2030) is running... [root@repository ~]#
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.exabytes.com.my * extras: centos.exabytes.com.my * updates: centos.exabytes.com.my repo id repo name status HDP-2.1 HDP-2.1 98 HDP-UTILS-1.1.0.19 HDP-UTILS-1.1.0.19 48 Updates-ambari-2.2.0.0 ambari-2.2.0.0 - Updates 8 base CentOS-6 - Base 6,706 extras CentOS-6 - Extras 45 mysql-connectors-community MySQL Connectors Community 36 mysql-tools-community MySQL Tools Community 47 mysql56-community MySQL 5.6 Community Server 358 updates CentOS-6 - Updates 358 repolist: 7,704 [root@repository ~]#
Created 06-17-2017 03:47 AM
I see the repo URL you are using as
http://centos/yum/HDP/centos6/2.x/updates/2.1.10.0/repodata/repomd.xml
Here the host name is "http://centos". Can you please check if you have really configured this hostname in your "/etc/hosts" file?
Is that host name intended or by mistake?
Can you also search which repo file in your system has the hostname "centos"?
grep "http://centos" /etc/yum.repos.d/*
.
If you have configured a custom HDP/Ambari repo then let us know if "http://centos" is it your custom repo host? If, yes then the mentioned hostname should be resolvable and reachable. A simple WGET can help in knowing if the mentioned URL is accessible or not ?
wget http://centos/yum/HDP/centos6/2.x/updates/2.1.10.0/repodata/repomd.xml
- If the URL is not accessible then it means wither your Custom Local repo (hosted on "centos") is not configured properly and not accessible.
(OR)
Some unwanted files with the mentioned host might be present in yoru "/etc/yum./repos.d" directory you might want to either fix them or remove them from the repos.d directory. and perform "yum clean all"
.
Created 06-18-2017 04:22 PM
It went fine after restart httpd service went fine
[root@repository ~]# service httpd status httpd (pid 2030) is running... [root@repository ~]#
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.exabytes.com.my * extras: centos.exabytes.com.my * updates: centos.exabytes.com.my repo id repo name status HDP-2.1 HDP-2.1 98 HDP-UTILS-1.1.0.19 HDP-UTILS-1.1.0.19 48 Updates-ambari-2.2.0.0 ambari-2.2.0.0 - Updates 8 base CentOS-6 - Base 6,706 extras CentOS-6 - Extras 45 mysql-connectors-community MySQL Connectors Community 36 mysql-tools-community MySQL Tools Community 47 mysql56-community MySQL 5.6 Community Server 358 updates CentOS-6 - Updates 358 repolist: 7,704 [root@repository ~]#