I am getting the below error :
Command start time 2017-06-26 19:42:42 Error: No matching Packages to list Error: No matching Packages to list Desired version (18.104.22.168) of ambari-agent package is not available.
I tried to install the ambari-agent manually, and I get the error related with Centos7 related error it seems :
[root@node4 yum.repos.d]# yum --enablerepo=* install ambari-agent Loaded plugins: fastestmirror, langpacks C7.0.1406-base | 3.6 kB 00:00:00 C7.0.1406-centosplus | 2.9 kB 00:00:00 C7.0.1406-extras | 2.9 kB 00:00:00 C7.0.1406-fasttrack | 2.9 kB 00:00:00 C7.0.1406-updates | 2.9 kB 00:00:00 C7.1.1503-base | 3.6 kB 00:00:00 C7.1.1503-centosplus | 3.4 kB 00:00:00 C7.1.1503-extras | 3.4 kB 00:00:00 C7.1.1503-fasttrack | 3.4 kB 00:00:00 C7.1.1503-updates | 3.4 kB 00:00:00 C7.2.1511-base | 3.6 kB 00:00:00 C7.2.1511-centosplus | 3.4 kB 00:00:00 C7.2.1511-extras | 3.4 kB 00:00:00 C7.2.1511-fasttrack | 3.3 kB 00:00:00 C7.2.1511-updates | 3.4 kB 00:00:00 ambari-22.214.171.124 | 2.9 kB 00:00:00 base-debuginfo | 2.5 kB 00:00:00 base-source | 2.9 kB 00:00:00 file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml" Trying other mirror. file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml" Trying other mirror. file:///media/cdrecorder/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrecorder/repodata/repomd.xml" Trying other mirror.
Looks like you are trying to configure Offline repo as a CDROM device which is not accessible.
curl#37 - "Couldn't open file /media/CentOS/repodata/repomd.xml" Trying other mirror. file:///media/cdrom/repodata/repomd.xml: [Errno 14]
Please fix your device. CDROM does not look like a right media to setup offline local repo.
Also if you want to configure the Local Repo the please refer to: https://docs.hortonworks.com/HDPDocuments/Ambari-126.96.36.199/bk_ambari-installation/content/setting_up_a...
I understand there is something wrong with my device.
What I am trying to do is to register the node#4 to my existing cluster. The ambari.repo file which I am referring from node#1 , where I have installed the the ambari-server, is pointing to public repository. So, there is noway I am setting up the local repository here. All I am trying to do is to add a new node.
Either your "repository_version" version has incorrect "base_url". Please check the Amabri API to findout the stack used via API calls: https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/repository-version-resources.m...
You can also look at the Ambari Database table "repo_version" to see if the baseurl of the repo is correct or not?
OR You will need to check the host that you are trying to add specially the "/etc/yum.repos.d" directory and then grep the "base_url" from all the repos to see if any of the repo file has CDROM as base url.
Example: (on the new host)
# grep 'baseurl' /etc/yum.repos.d/*.repo