Managing Versions
Ambari stores multiple versions of components and provides the ability to set one of those versions as current.
Ambari enables you to manage versions of the stack installed in the cluster and registered with Ambari Server. You can register a new version, upgrade version-repository base URLs, and de-register a version. After you install a cluster, Ambari automatically registers the version of the stack software.Admin/Versions lists the current stack, name, version, and cluster that is running.
Register a new version
Use Ambari Admin > Versions to register a new stack version.
Procedure
- Browse to Ambari Admin > Versions.
If necessary, click Manage Versions, then OK.
- In Ambari Admin > Versions click Register Version.
- Select the software version and method of delivery for your cluster.
Choose | Description |
---|---|
ODP Stack | The available ODP versions are shown in TABs. When you select a TAB, Ambari attempts to discover what specific version of that ODP Stack is available. That list is shown in a DROPDOWN. For that specific version, the available Services are displayed, with their Versions shown in the TABLE. |
ODP Version | If Ambari has access to the Internet, the specific Versions will be listed as options in the DROPDOWN. If you have a Version Definition File for a version that is not listed, you can click Add Version… and upload the VDF file. In addition, a Default Version Definition is also included in the list if you do not have Internet access or are not sure which specific version to install. |
Repository Delivery Method | Using a Public Repository requires Internet connectivity. Using a Local Repository requires you have configured the software in a repository available in your network. To use the public software repositories, see the list of available ODP Repositories for each OS. Or, if you are using a local repository, enter the Base URLs for the local repository you have created. |
- Review Advanced Options.
Choose | Description |
---|---|
Skip Repository Base URL validation (Advanced) | Ambari will attempt to connect to the repository Base URLs and validate that you have entered a validate repository. If not, an error will be shown that you must correct before proceeding. This option will skip the Base URL validation. |
Use RedHat Satellite/Spacewalk: | This option will only be enabled when you plan to use a Local Repository. When you choose this option for the software repositories, you are responsible for configuring the repository channel in Satellite/ Spacewalk. Please refer to the Red Hat Satellite/ Spacewalk documentation for more information. Once configured, it is very important that ensure the repositories you confirm for the selected stack version are available on the hosts in the cluster. Ambari will not distribute or use .repo files and will rely on Satellite/Spacewalk as having the repositories configured with the correct stack version. |
- Click Save.
What to do next
Update Version Repository Base URLs
Update Version Repository Base URLs
Use Admin/Versions/Repositories to provide URLs for your source repositories.
Procedure
- Browse to Ambari Admin > Versions. If necessary, click Manage Versions, then OK.
- In Admin/Versions, click the version name you want to modify.
- In Repositories, modify the base URLs for the repositories. To use the public software repositories, see the list of available ODP repositories for each OS. Or, if you are using a local repository, enter the Base URLs for the local repository you have created.
- Click Save.
- Click Confirm Change. You must confirm the change since you are about to change repository Base URLs that are already in use. Please confirm that you intend to make this change and that the new Base URLs point to the same exact stack version and build.
De-register a version
Use Admin/Versions to de-register a selected stack version.
Procedure
- Browse to Ambari Admin > Versions. If necessary, click Manage Versions, then OK.
- Click the version you want to de-register. Only versions that are not installed in a cluster can be de-registered.
- Click De-register Version and then confirm.