Support Questions

Find answers, ask questions, and share your expertise

Unable to Reinstall ambari-server after execution of "yum erase ambari-server" command

avatar
Rising Star

[root@BDFCLSM1 admin]# yum install ambari-server

Loaded plugins: fastestmirror, priorities

Loading mirror speeds from cached hostfile

* base: centos.mirror.transip.nl

* extras: centos.mirror.transip.nl

* updates: mirror.nforce.com

No package ambari-server available.

Error: Nothing to do

also am trying to perform wget wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.4/updates/2.2.1.1/ambari.repo -O /etc/yum.repos.d/ambari.repo

below is the output

3236-wget-ambari.png

1 ACCEPTED SOLUTION

avatar
Super Collaborator

@sarfarazkhan pathanPlease try below URL :

#wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

Note: Dont replace 2.x with 2.4

Thanks ,

Raghav

View solution in original post

4 REPLIES 4

avatar
Super Guru

Hi @sarfarazkhan pathan

Can you check if you have internet connection in place? try # ping google.com

I see from the log it seems your internet connection is not working.

If you are using virtual machine for installation of ambari, the please follow below step to check your network settings -

1. Open virtual machine on which you are trying to install

2. Click on .. Machine-> Settings ->Network

3. Make sure your adapter should be set to "Bridged Adapter" or "NAT"

4. Try restarting VM or network services.

check again for downloading using wget command.

avatar
Super Collaborator

@sarfarazkhan pathanPlease try below URL :

#wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

Note: Dont replace 2.x with 2.4

Thanks ,

Raghav

avatar
Explorer

worked well

avatar
Rising Star

Thanks a lot rguruvannagari

its worked perfectly now i am able to see yum repolist ambari...... in the lists