Support Questions
Find answers, ask questions, and share your expertise

Do not take effect when I try update repositories to local repo

New Contributor
Ambari Version 2.6.2.0
Use flow method update repositories : 

 

 

 

 

 

 curl -H "X-Requested-By: ambari" -X PUT -u admin:admin http://localhost:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositories/HDP-2.6 -d@repo.json 

 

 

 

 

 

 Query result is still official:

 

 

 

 

 

curl -H "X-Requested-By: ambari" -X GET -u admin:admin http://localhost:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositories/HDP-2.6

 

 

 

 

{
"href" : "http://localhost:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositories/HDP-2.6",
"Repositories" : {
"applicable_services" : [ ],
"base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3",
"components" : null,
"default_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3",
"distribution" : null,
"latest_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3",
"mirrors_list" : null,
"os_type" : "redhat7",
"repo_id" : "HDP-2.6",
"repo_name" : "HDP",
"stack_name" : "HDP",
"stack_version" : "2.6",
"tags" : [ ],
"unique" : false
}

 

Reference:

Step 4: Setup Stack Repositories (Optional)
 
0 REPLIES 0