Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Installation problem with HDP2.6 using Ambari 2.5 on RHL7

avatar
Contributor

I'm trying to install ambari-2.5.1.0 on RHL7.

Installed local repository on host, added ambari.repo, and hdp.repo to /etc/yum.repos.d, and trying to run following command as root.

yum install ambari-server

I get below error, and I cannot go any further at this point.

http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Winnie Philip

It looks like more of a Web Server issue where you installed the local repository.

Can you please check if you are able to get the repomd.xml file using wget/curl from abari server host?

# wget http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml
OR
# curl http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml

.

If above does not work and gives same 403 response. Then you will need to check your Proxy configuration Or Proxy username / password.

Please check if there is any proxy server configured which requires proxy credentials? If yes then add the credentials something like following inside your "/etc/profile" OR inside "~/.bash_profile" file of all hosts with the correct proxy username / password and port.

export http_proxy=http://USERNAME:PASSWORD@proxy.com:80

.

Reference: https://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

View solution in original post

8 REPLIES 8

avatar
Master Mentor

@Winnie Philip

It looks like more of a Web Server issue where you installed the local repository.

Can you please check if you are able to get the repomd.xml file using wget/curl from abari server host?

# wget http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml
OR
# curl http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml

.

If above does not work and gives same 403 response. Then you will need to check your Proxy configuration Or Proxy username / password.

Please check if there is any proxy server configured which requires proxy credentials? If yes then add the credentials something like following inside your "/etc/profile" OR inside "~/.bash_profile" file of all hosts with the correct proxy username / password and port.

export http_proxy=http://USERNAME:PASSWORD@proxy.com:80

.

Reference: https://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

avatar
Master Mentor

@Winnie Philip

Also it is strange to see that you are trying to install Ambari Server (which ideally comes from ambari repo, Not from the HDP repo) but the error shows that it is trying to retrieve file from hdp repo (hdp/HDP/centos7/repodata/repomd.xml). Can you please check the

http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml

.

Can you please check the repos are correct or not?

# cat /etc/yum.repos.d/ambari.repo

.

avatar
Contributor

I have both /etc/yum.repos.d/ambari.repo, and /etc/yum.repos.d/hdp.repo

avatar
Contributor

These are the 3 errors:

http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden Trying other mirror. http://vlmazgrpmaster.fisdev.local/hdp/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden Trying other mirror. http://vlmazgrpmaster.fisdev.local/ambari/centos7/repodata/repomd.xml: [Errno 14] HTTP Error 403 - Forbidden

avatar
Master Mentor

@Winnie Philip

It looks your local repo is not well configured, first clear the cache

# yum clean all

What is the output of

# yum repolist

What is the url in these 2 files

$ cat /etc/yum.repos.d/ambari.repo
$ cat /etc/yum.repos.d/HDP.repo

Can you the local access base URL

 http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7

If not see Setting Up a Local Repository

avatar
Contributor

Thanks for getting back so quickly. yum repolist also giving me the same 403 - Forbidden error

I can get to "curl http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7/repodata/repomd.xml"

cat /etc/yum.repos.d/ambari.repo

#VERSION_NUMBER=2.5.1.0-159

[ambari-2.5.1.0] name=ambari Version - ambari-2.5.1.0

#baseurl=http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.5.1.0 baseurl=http://vlmazgrpmaster.fisdev.local/ambari/centos7/

#gpgcheck=1 gpgcheck=0 gpgkey=http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.5.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1

cat /etc/yum.repos.d/HDP.repo

#VERSION_NUMBER=2.6.1.0-129 [HDP-2.6.1.0]

name=HDP Version - HDP-2.6.1.0

#baseurl=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0 baseurl=http://vlmazgrpmaster.fisdev.local/hdp/HDP/centos7

#gpgcheck=1

gpgcheck=0

gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0/RPM- GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1

priority=1

[HDP-UTILS-1.1.0.21]

name=HDP-UTILS Version - HDP-UTILS-1.1.0.21

#baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7 baseurl=http://vlmazgrpmaster.fisdev.local/hdp/

#gpgcheck=1

gpgcheck=0

gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0/RPM- GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1

priority=1

avatar
Contributor

Thanks all, My problem was the "proxy". yum.conf had a line for "proxy=" deep down in the file. I commented out and after that

"yum install ambari-server" worked.

avatar
Master Mentor

@Winnie Philip

Great you got a solution for that, now you have to accept the best response as a reward to the HCC member this ensure that members are motivated to help .