Skip to main content
chennuri_gouris
Gold ⭐️
March 28, 2019

There's an API to remove older versions from the hosts. Take a look at https://issues.apache.org/jira/browse/AMBARI-18435

E.g.,

  1. curl 'http://c6401.ambari.apache.org:8080/api/v1/clusters/cl1/requests' -u admin:admin -H "X-Requested-By: ambari" -X POST -d'{"RequestInfo":{"context":"remove_previous_stacks", "action" : "remove_previous_stacks", "parameters" : {"version":"2.5.0.0-1245"}}, "Requests/resource_filters": [{"hosts":"c6403.ambari.apache.org, c6402.ambari.apache.org"}]}'

6 replies

balance002
Gold ⭐️
March 28, 2019

Prepare to upgrade to Spark-2.2.0, but when Ambari adds services, only Spark 2.1.1.

107432-1553757328497.png

Translate
chennuri_gouris
Gold ⭐️
March 28, 2019

There's an API to remove older versions from the hosts. Take a look at https://issues.apache.org/jira/browse/AMBARI-18435

E.g.,

  1. curl 'http://c6401.ambari.apache.org:8080/api/v1/clusters/cl1/requests' -u admin:admin -H "X-Requested-By: ambari" -X POST -d'{"RequestInfo":{"context":"remove_previous_stacks", "action" : "remove_previous_stacks", "parameters" : {"version":"2.5.0.0-1245"}}, "Requests/resource_filters": [{"hosts":"c6403.ambari.apache.org, c6402.ambari.apache.org"}]}'

Translate
balance002
Gold ⭐️
March 28, 2019

When adding the service, I found that the local repo was not being used. Instead, a remote hdp repo is used.

107443-1553768895499.png

Translate
balance002
Gold ⭐️
March 29, 2019

Ambari Version is 2.6.1.0 and HDP Version is 2.6.4.0 .

Translate
balance002
Gold ⭐️
March 29, 2019

I know, this is the problem that is displayed. During the installation process, I still use my local repo. I guess it may be a bug after Ambari upgrade!

Translate
chennuri_gouris
Gold ⭐️
March 29, 2019

In /etc/yum.repos.d, remove all .repo files pointing to the Internet and copy only .repo files from other servers which are already using your local repo. For HDP nodes, initially you need only 2 .repo files, one for the OS, and ambari.repo. When Ambari adds a new node to the cluster it will copy there HDP.repo and HDP-UTILS.repo. Also, have you set your repository URLs in Ambari-> Admin-> Stack and versions-> Versions -> Manage Versions -> [click on your current version] ?

Translate