Support Questions
Find answers, ask questions, and share your expertise

I have upgraded HDP to 2.6.4.0, but can't delete the old HDP version? Any suggestions?

Contributor

107511-1553757038175.png

1 ACCEPTED SOLUTION

Expert Contributor

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"}]}'

View solution in original post

6 REPLIES 6

Contributor

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

107432-1553757328497.png

Expert Contributor

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"}]}'

Contributor

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

107443-1553768895499.png

Contributor

Ambari Version is 2.6.1.0 and HDP Version is 2.6.4.0 .

Contributor

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!

Expert Contributor

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] ?

; ;