Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)

1. Get the output from Ambari server

http://AMBARI-HOST:8080/api/v1/stacks/HDP/versions?fields=repository_versions/operating_systems/repo...


2. Copy the json of "operating_systems" outer block of step1 output and create repo.json file -

it would looks like repo.json


3. update repo.json file to reflect your changes/modifications.


4. now run below API call to update.


curl -insecure  -H "X-Requested-By:ambari" --user admin:admin --data @repo.json  -X PUT  http://AMBARI-HOST:8080/api/v1/stacks/HDP/versions/3.1/repository_versions/1

Note: please make sure you include correct repo version id at the end. in this case it is 1


5. Now go and check in UI to see if those changes reflects.


Note: This tried and tested in Ambari2.7.x

230 Views
0 Kudos
Comments

Helpfull Article to update Repo URLS incase manage version UI is not loading.


Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎05-21-2019 09:49 PM
Updated by:
 
Contributors
Top Kudoed Authors