Prerequisites
You must have completed the Getting Started Setting up a Local Repository procedure.
- -
To finish setting up your local repository, complete the following:
Steps
- Install the repository configuration files for Ambari and the Stack on the host.
- Confirm repository availability; - For RHEL, CentOS, Oracle or Amazon Linux: - yum repolist
 - For SLES: - zypper repos
 - For Debian and Ubuntu: - dpkg-list
 
- Synchronize the repository contents to your mirror server: - Browse to the web server directory: - For RHEL, CentOS, Oracle or Amazon Linux: - cd /var/www/html/
 - For SLES: - cd /srv/www/htdocs/rpms
 - For Debian and Ubuntu: - cd /var/www/html/
 
- For Ambari, create the - ambaridirectory and reposync:- mkdir -p ambari/<OS>
 - cd ambari/<OS>
 - reposync -r Updates-Ambari-2.7.5.0
 
- For Hortonworks Data Platform (HDP) stack repositories, create the - hdpdirectory and reposync:- mkdir -p hdp/<OS>
 - cd hdp/<OS>
 - reposync -r HDP-<latest.version>
 - reposync -r HDP-UTILS-<version>
 
- For HDF Stack Repositories, create an - hdfdirectory and reposync.- mkdir -p hdf/<OS>
 - cd hdf/<OS>
 - reposync -r HDF-<latest.version>
 
 
- Generate the repository metadata: - For Ambari: - createrepo <web.server.directory>/ambari/<OS>/Updates-Ambari-2.7.5.0
 - For HDP Stack Repositories: - createrepo <web.server.directory>/hdp/<OS>/HDP-<latest.version>
 - createrepo <web.server.directory>/hdp/<OS>/HDP-UTILS-<version>
 - For HDF Stack Repositories: - createrepo <web.server.directory>/hdf/<OS>/HDF-<latest.version>
 
- Confirm that you can browse to the newly created repository: - Ambari Base URL - http://<web.server>/ambari/<OS>/Updates-Ambari-2.7.5.0
 - HDF Base URL - http://<web.server>/hdf/<OS>/HDF-<latest.version>
 - HDP Base URL - http://<web.server>/hdp/<OS>/HDP-<latest.version>
 - HDP-UTILS Base URL - http://<web.server>/hdp/<OS>/HDP-UTILS-<version>
 - Where: - <web.server>– The FQDN of the web server host
- <version>– The Hortonworks stack version number
- <OS>– centos7, sles12, ubuntu16, ubuntu 18, or debian9- Be sure to record these Base URLs. You will need them when installing Ambari and the Cluster. 
 
- Optional. If you have multiple repositories configured in your environment, deploy the following plug-in on all the nodes in your cluster. - a. Install the plug-in. - For RHEL/CentOS/Oracle 7: - yum install yum-plugin-priorities
 - b. Edit the - /etc/yum/pluginconf.d/priorities.conffile to add the following:- [main]
- enabled=1
- gpgcheck=0
 
 我的书签
 我的书签
                                 添加书签
 添加书签 移除书签
 移除书签