Support Questions

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

Upgrade Ambari 2.2.0 to 2.2.1.0

avatar
Expert Contributor

Hi,

I have upgrade my Ambari from version 2.2.0.0 to 2.2.1.0.

The upgrade has been successful but when I try to register a target version (HDP 2.4), I not seen in the "Ambari --> stack and version --> version" the new version.

In the Ambari server log don't see error, but in the ambari database the table cluster_version contains only the current version (HDP-2.3.4)

O.S.: Centos 7

1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
8 REPLIES 8

avatar
Super Guru

@Davide Isoardi

I am using same version of ambari and able to see -

3363-screen-shot-2016-04-11-at-74242-pm.png

Click on "Manage Versions"

3364-screen-shot-2016-04-11-at-74300-pm.png

Click on "Register Version"

3365-screen-shot-2016-04-11-at-74316-pm.png

Can you confirm once ?

avatar
Expert Contributor

3372-cattura.png

but

3373-cattura.png

and in the ambari database:

ambari=> select * from cluster_version;
 id | repo_version_id | cluster_id |  state  |  start_time   |   end_time    | user_name  
----+-----------------+------------+---------+---------------+---------------+------------
  1 |               1 |          2 | CURRENT | 1454168363628 | 1454168363697 | _anonymous
(1 riga)

don't show the registred version (2.4.0.0)

avatar
Master Guru

Can you double check Base URLs of HDP and HDP-UTILS you used to register you new version. If one of them is wrong, or not accessible then the registration will fail. You can test using wget from your Ambari server node:

wget <HDP-Base-URL>/repodata/repomd.xml
wget <HDP-UTILS-Base-URL>/repodata/repomd.xml

avatar
Expert Contributor

I download the file properly for both repo.

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

Not work if I upgrade ambari from 2.2.0.0 to 2.2.1.1 directly.

avatar
Guru

Can you post the output of this?

select repo_version_id,stack_id,version,display_name from repo_version;

avatar
Expert Contributor

Hi @jeff,

I have the same problem after upgrade Amabri 2.2.0.0 to 2.2.1.1 directly.

The result of the query is:

ambari=> select repo_version_id,stack_id,version,display_name from repo_version;
 repo_version_id | stack_id |   version    |   display_name  
-----------------+----------+--------------+------------------
               1 |        4 | 2.3.4.0-3485 | HDP-2.3.4.0-3485
              51 |       51 | 2.4.0.0      | HDP-2.4.0.0
(2 righe)