Support Questions

Find answers, ask questions, and share your expertise

Ambari-server installation is failed with "Error: Nothing to do"

avatar
New Contributor

Enviroment:

Centos 7 + Ambari 2.2.1

Error Log:

[root@master ~]# wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0/ambari.repo --2017-03-23 00:36:19-- http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0/ambari.repo Resolving public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)... 52.85.47.94, 52.85.47.81, 52.85.47.121, ... Connecting to public-repo-1.hortonworks.com (public-repo-1.hortonworks.com)|52.85.47.94|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 287 [binary/octet-stream] Saving to: ‘ambari.repo’ 100%[======================================>] 287 --.-K/s in 0s 2017-03-23 00:36:19 (42.7 MB/s) - ‘ambari.repo’ saved [287/287] [root@master ~]# cp ambari.repo /etc/yum.repos.d [root@master ~]# yum install ambari‐serverLoaded plugins: fastestmirror, langpacks Updates-ambari-2.2.1.0 | 2.9 kB 00:00 Loading mirror speeds from cached hostfile * base: sunsite.rediris.es * extras: sunsite.rediris.es * updates: sunsite.rediris.es Error: Nothing to do [root@master ~]# ambari-server setup bash: ambari-server: command not found... [root@master ~]#

Yum info:

[root@master ~]# yum repolist Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: sunsite.rediris.es * extras: sunsite.rediris.es * updates: sunsite.rediris.es repo id repo name status Updates-ambari-2.2.1.0 ambari-2.2.1.0 - Updates 7 base/7/x86_64 CentOS-7 - Base 9,363 extras/7/x86_64 CentOS-7 - Extras 311 updates/7/x86_64 CentOS-7 - Updates 1,111 repolist: 10,792 [root@master ~]#

[root@master ~]# cat /etc/yum.repos.d/ambari.repo #VERSION_NUMBER=2.2.1.0-161 [Updates-ambari-2.2.1.0] name=ambari-2.2.1.0 - Updates baseurl=http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.1.0 gpgcheck=1 gpgkey=http://public-repo-1.hortonworks.com/ambari/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1 priority=1 [root@master ~]# ^C [root@master ~]#

Please I need help...

How I can resolve the issue "Error: Nothing to do" ?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Javier Paez

Before installing ambari-server can you please share & verify the output of the following commands

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
# yum clean all
# yum info ambari-server
# ambari-server --version   
# yum install ambari-server -y

In your yum output i see that it is using some cached entry as following:

Loading mirror speeds from cached hostfile * base: sunsite.rediris.es * extras: sunsite.rediris.es * updates: sunsite.rediris.es Error: Nothing to do 

Hence it is better to clear the yum cache first, you can use the following command.

# yum clean all

If you are using any Http Proxy at your end then in the "~/.bash_profile" profile we can add the following: (here replace the "proxyHostName:3128" with proxy host and port number)

export http_proxy=http://proxyHostName:3128/
export https_proxy=${http_proxy}
export ftp_proxy=${http_proxy}

Also please see: http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/_how_to_se...

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@Javier Paez

Before installing ambari-server can you please share & verify the output of the following commands

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
# yum clean all
# yum info ambari-server
# ambari-server --version   
# yum install ambari-server -y

In your yum output i see that it is using some cached entry as following:

Loading mirror speeds from cached hostfile * base: sunsite.rediris.es * extras: sunsite.rediris.es * updates: sunsite.rediris.es Error: Nothing to do 

Hence it is better to clear the yum cache first, you can use the following command.

# yum clean all

If you are using any Http Proxy at your end then in the "~/.bash_profile" profile we can add the following: (here replace the "proxyHostName:3128" with proxy host and port number)

export http_proxy=http://proxyHostName:3128/
export https_proxy=${http_proxy}
export ftp_proxy=${http_proxy}

Also please see: http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_reference_guide/content/_how_to_se...

avatar
New Contributor

Hi Jay,

Clean the yum cache and install with the option "-y" has been the solution.

Thank you very much

avatar
Explorer
# yum clean all
# yum install ambari-server -y

Should solve this 🙂