Replies: 1
Hi,
I am installing a four-node cluster using Ambari on CentOS6. I have built a local repository from where the packages can be downloaded. The local repository and the Ambari server are running on the master node in the cluster. These are the steps that I have followed till now:
1. Set up a password-less ssh from the Ambari Server to rest of the nodes
2. Installed and set up Apache httpd server
3. Configured the local repository that is running on Apache httpd server. I followed the steps from here for setting up local repositories:
Downloaded the three repos for Centos6(HDP, HDP-UTILS and Ambari)
4. These repositories are successfully reflected on my Apache Server. Here are the details (on http://node1.hadoop.com/hdp/)
Index of /hdp
HDP-UTILS-1.1.0.16/
HDP/
ambari/
ambari.reo
hdp-util.repo
hdp.repo
5. Then, I download and edit the ambari.repo file accordingly. I copy this file to /etc/yum.repos.d/ folder of every node using scp. Here are the contents of it:
[ambari-1.x]
name=Ambari 1.x
baseurl=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/
gpgcheck=1
gpgkey=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-UTILS-1.1.0.16]
name=Hortonworks Data Platform Utils Version - HDP-UTILS-1.1.0.16
baseurl=http://node1.hadoop.com/hdp/HDP-UTILS-1.1.0.16/repos/centos6/
gpgcheck=1
gpgkey=http://node1.hadoop.com/hdp/ambari/centos6/1.x/updates/1.4.3.38/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-2.0.6.0]
name=Hortonworks Data Platform HDP-2.0.6.0
baseurl=http://node1.hadoop.com/hdp/HDP-UTILS-1.1.0.16/repos/centos6/
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/HDP/$os/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
Since there were three .repo files (hdp.repo, ambari.repo and HDP.repo) so I change the baseurl in every file according to my web-server and place them in /etc/repos.d/ of each node.
5. Then in the Ambari Installation Wizard, I fill the following entries at each step :
a) Step 2: Install options: In this I give the URL of my local repository for CentOS6 as http://node1.hadoop.com/hdp/HDP/centos6/2.x/updates/2.0.6.0/
b) Step 3: Confir hosts : success on all 4
c) Step 4: Choose services : Selected all
d) Step 5,6,7,8 : Done
e) Step 9 : Install, Start and Test:
It is getting failed and I am getting this error :
notice: Finished catalog run in 0.03 seconds err: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Package[net-snmp-utils]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install net-snmp-utils' returned 1: Error Downloading Packages: 1:net-snmp-utils-5.5-49.el6.x86_64: failure: Packages/net-snmp-utils-5.5-49.el6.x86_64.rpm from base: [Errno 256] No more mirrors to try.
Can anyone help me to solve this error?
Thanks.