Created on 02-09-2016 06:07 AM - edited 08-19-2019 02:12 AM
when I try to use yum to update or install some packages, I get this error. .
"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.2.0/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.3. Please verify its path and try again"
I am working on HDP 2.3.4 Sandbox deployed on a CentOS 6 server which is behind the proxy. The server has internet access. I can ping google.com , for example.
the contents of /etc/yum.repos.d looks like this:
Any workaround regarding this issue would be highly appreciated!
Created 02-29-2016 12:25 PM
Resolved: The problem was related to proxy Authentication. So, I installed and configured CNTLM to access ISA Proxy Server on Centos 6.
Look at the article :
1.Install and configure cntlm
2. configure yum to use through ISA Proxy
add a line:
proxy=http://127.0.0.1:3128/
add :
export http_proxy=http://localhost:3128/
export https_proxy=${http_proxy}
export ftp_proxy=${http_proxy}
yum update, yum repolist or yum install now works fine
Created 08-09-2017 02:05 PM
Unsure if you're still stuck here. What you can do is goto Manage Ambari > Versions > and update the HDP and HDP-UTILS URL's. You will be able to find your relevant URL's in your version document of ambari. Try to use the Public URL's if you have internet access.
Thanks,
Adnan Khan