- On the Ambari Server host, open the following files with a text editor: - /var/lib/ambari-server/resources/stacks/HDP/1.2.0/repos/repoinfo.xml- /var/lib/ambari-server/resources/stacks/HDP/1.2.1/repos/repoinfo.xml- /var/lib/ambari-server/resources/stacks/HDPLocal/1.2.0/repos/repoinfo.xml- /var/lib/ambari-server/resources/stacks/HDPLocal/1.2.1/repos/repoinfo.xml
- Update the URL setting in each file to match the applicable repository location according to release version and OS type: - CentOS5: - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos5/1.x/GA/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos5/1.x/GA/1.2.0/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos5/1.x/updates/1.2.1/hdp.repo 
- CentOS6: - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos6/1.x/GA/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos6/1.x/GA/1.2.0/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/centos6/1.x/updates/1.2.1/hdp.repo 
- SUSE11: - //public-repo-1.hortonworks.com/HDP-1.2.0-1/suse11/1.x/GA/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/suse11/1.x/GA/1.2.0/hdp.repo - //public-repo-1.hortonworks.com/HDP-1.2.0-1/suse11/1.x/updates/1.2.1/hdp.repo 
 - For example, for CentOS6 the changes to the above files would be: - HDP 1.2.1 - <os type="centos6"> <repo> <baseurl>//public-repo-1.hortonworks.com/HDP-1.2.0-1/centos6/1.x/updates/1.2.1</baseurl> <repoid>HDP-1.2.1</repoid> <reponame>HDP</reponame> </repo> </os> - HDP 1.2.0 - <os type="centos6"> <repo> <baseurl>//public-repo-1.hortonworks.com/HDP-1.2.0-1/centos6/1.x/GA/1.2.0</baseurl> <repoid>HDP-1.2.0</repoid> <reponame>HDP</reponame> </repo> </os> 
- After the files are updated, the Ambari Server should be restarted. 


