Support Questions

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

how to perform HDP upgrade to 2.6.4 while no internet access from ambari cluster

avatar

dear colleges and friends

we are now after ambari upgrade and before HDP upgrade

how to perform HDP upgrade to 2.6.4 while no internet access from ambari cluster

we want to use the upgrade from local repo , but screen not show the available version - 2.6.4

64416-capture10.png

so what we need to do in order to update the ambari , so it will show the HDP availble version - 2.6.4 inspite we not have access to internet ?

64417-capture11.png

we want to use the local repo for HDP upgrade ( but the names are from old HDP version - 2.6 )

64418-capture12.png

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Michael Bronson

When we try to register a new version from ambari UI then on the mentioned page ambari makes the following API call to determine which one is the latest minor release of the selected stack:

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X GET http://amb25101.example.com:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositori...


That way ambari knows which is the "latest_base_url" for the selected stack:

 {
  "href" : "http://amb25101.example.com:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositories/HDP-2.6",
  "Repositories" : {
    "base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.3.0",
    "default_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3",
    "latest_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0",
    "mirrors_list" : null,
    "os_type" : "redhat7",
    "repo_id" : "HDP-2.6",
    "repo_name" : "HDP",
    "stack_name" : "HDP",
    "stack_version" : "2.6",
    "unique" : false
  }
}



Like in this case it knows: http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0

So if you do not see this info because you do not have the Internet access. So you will need to configure a local HDP repo and make it available in ambari.

You will than need to provide the HDP and HDP-UTILS local repo location in the below text boxes.

.

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Michael Bronson

When we try to register a new version from ambari UI then on the mentioned page ambari makes the following API call to determine which one is the latest minor release of the selected stack:

# curl -i -u admin:admin -H "X-Requested-By: ambari" -X GET http://amb25101.example.com:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositori...


That way ambari knows which is the "latest_base_url" for the selected stack:

 {
  "href" : "http://amb25101.example.com:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat7/repositories/HDP-2.6",
  "Repositories" : {
    "base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.3.0",
    "default_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3",
    "latest_base_url" : "http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0",
    "mirrors_list" : null,
    "os_type" : "redhat7",
    "repo_id" : "HDP-2.6",
    "repo_name" : "HDP",
    "stack_name" : "HDP",
    "stack_version" : "2.6",
    "unique" : false
  }
}



Like in this case it knows: http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.4.0

So if you do not see this info because you do not have the Internet access. So you will need to configure a local HDP repo and make it available in ambari.

You will than need to provide the HDP and HDP-UTILS local repo location in the below text boxes.

.