Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.