Member since
09-27-2016
3
Posts
1
Kudos Received
0
Solutions
09-28-2016
12:04 PM
Hi again,
tying a fresh installation, finally it worked with the workaround pointed by Michael. curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{ "Repositories" : { "base_url":"http://antchamber01/hdp", "verify_base_url":true }}' http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4 curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{
"Repositories" : { "base_url":"http://antchamber01/hdp-utils",
"verify_base_url":true }}'
http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20
Thanks a lot for your help!
Marc
... View more
09-27-2016
03:32 PM
Hi Michael thanks for the reply. [root@ambarisrv yum.repos.d]# curl -u username:password http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories",
"items" : [
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4",
"Repositories" : {
"os_type" : "redhat7",
"repo_id" : "HDP-2.4",
"stack_name" : "HDP",
"stack_version" : "2.4"
}
},
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20",
"Repositories" : {
"os_type" : "redhat7",
"repo_id" : "HDP-UTILS-1.1.0.20",
"stack_name" : "HDP",
"stack_version" : "2.4"
}
}
]
} So this is not returning the info from the repoinfo.xml. I also tried by restarting the ambari-server. [root@ambarisrv yum.repos.d]# curl -i -H "X-Requested-By: ambari" -u username:password -X PUT -d'{ "Repositories" : { "base_url":"http://antchamber01/hdp", "verify_base_url":true }}' http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4
HTTP/1.1 200 OK
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
User: username
Set-Cookie: AMBARISESSIONID=qztzzlsjnykfrct0hcp1jabv;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/plain
Content-Length: 0
Server: Jetty(8.1.17.v20150415) This neither helps 😞 [root@ambarisrv yum.repos.d]# curl -u username:password http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories",
"items" : [
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-2.4",
"Repositories" : {
"os_type" : "redhat7",
"repo_id" : "HDP-2.4",
"stack_name" : "HDP",
"stack_version" : "2.4"
}
},
{
"href" : "http://ambarisrv:8080/api/v1/stacks/HDP/versions/2.4/operating_systems/redhat7/repositories/HDP-UTILS-1.1.0.20",
"Repositories" : {
"os_type" : "redhat7",
"repo_id" : "HDP-UTILS-1.1.0.20",
"stack_name" : "HDP",
"stack_version" : "2.4"
}
}
]
} Thanks! Marc
... View more
09-27-2016
09:25 AM
1 Kudo
I have set a local repository which is being propagated in the /etc/yum.repos.d directory (centos7/redhat7) on new installed machines. When I set up a new ambari-server and I install a cluster using blueprints, official repositories are being configured in the /etc/yum.repos.d and the local ones that I have set up are skipped. I tried to modify the file /var/lib/ambari-server/resources/stacks/HDP/2.4/repos/repoinfo.xml in the ambari-server by replacing the redhat7 repository and I have changed the baseurl with the endpoint of the local repository, but installation is still ignoring this endpoint and keeps setting the official baseurl (which I want to avoid). How can I force the use of local repositories when cluster installation+configuration is performed through blueprints? Thanks a lot, Marc
... View more
Labels: