Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari blueprint - how to specify the exact stack version a.b.c.d rather than just a.b?

avatar
Rising Star

In Ambari blueprint, we tried giving the stack_version as 2.3 and it installed HDP 2.3.0.0. Instead we want the latest HDP 2.3.4.7. How do we specify this in the blue print.... or is there any other property or configuration parameter that we should use so that Ambari installs 2.3.4.7. Any pointers will be very much helpful for us. Thanks.

{

    "configurations" : [ ],
    "host_groups"  : [ ],
   "Blueprints"  : {
  "stack_name" : "HDP",
  "stack_version" : "2.3"
    }
}
1 ACCEPTED SOLUTION

avatar
Master Guru

Each version of Ambari has a default HDP version for each stack version. In your case for stack 2.3 it appears to be 2.3.0.0. You can control that by setting Ambari's repository URLs. First inspect your current settings, for example in case of Redhat/Centos-6.x, from Ambari server:

curl -u admin:admin -H "X-Requested-By: ambari" http://localhost:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/repositories/HDP-2.3
curl -u admin:admin -H "X-Requested-By: ambari" http://localhost:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/repositories/HDP-UTIL...

To change the settings, issue the same 2 curl commands to the same URLs using http PUT method, and upload respective JSON files, one for HDP and one for HDP-UTILS repo.

{
  "Repositories” : {
    "base_url” : ”<HDP-2.3.4.7_REPO_BASE_URL>",
    "verify_base_url” : true
  }
}

You can find repo URLs in Ambari install document, however my recommendation is to download and create local repos, to speed up the install phase. After setting repos, re-deploy the cluster.

View solution in original post

2 REPLIES 2

avatar
Master Guru

Each version of Ambari has a default HDP version for each stack version. In your case for stack 2.3 it appears to be 2.3.0.0. You can control that by setting Ambari's repository URLs. First inspect your current settings, for example in case of Redhat/Centos-6.x, from Ambari server:

curl -u admin:admin -H "X-Requested-By: ambari" http://localhost:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/repositories/HDP-2.3
curl -u admin:admin -H "X-Requested-By: ambari" http://localhost:8080/api/v1/stacks/HDP/versions/2.3/operating_systems/redhat6/repositories/HDP-UTIL...

To change the settings, issue the same 2 curl commands to the same URLs using http PUT method, and upload respective JSON files, one for HDP and one for HDP-UTILS repo.

{
  "Repositories” : {
    "base_url” : ”<HDP-2.3.4.7_REPO_BASE_URL>",
    "verify_base_url” : true
  }
}

You can find repo URLs in Ambari install document, however my recommendation is to download and create local repos, to speed up the install phase. After setting repos, re-deploy the cluster.

avatar
Rising Star

@Predrag Minovic - Thanks. It is solved.