Were there any attempts to add services or hosts to the cluster during the
middle of Rolling Upgrade?
Sounds like you may have to force the version by editing the DB.
Stop ambari server
First, make sure all host components are on the newer version.
If not, you may need to run hdp-select set all 2.3.2.0-2950
and restart services or refresh configs. You can use the /#/experimental flag
for opsDuringRollingUpgrade
-- This should be empty
SELECT h.host_name, hcs.service_name, hcs.component_name, hcs.version FROM
hostcomponentstate hcs JOIN hosts h ON hcs.host_id = h.host_id where
hcs.version NOT IN ('2.3.2.0-2950', 'UNKNOWN');
?
SELECT repo_version_id, version, display_name FROM repo_version;
UPDATE host_version SET state = 'INSTALLED' WHERE state = 'CURRENT';
UPDATE host_version SET state = 'CURRENT' WHERE repo_version_id = <id for
2.3.2.0 version> and state = 'INSTALLED';
UPDATE cluster_version SET state = 'INSTALLED' WHERE state = 'CURRENT';
UPDATE cluster_version SET state = 'CURRENT' WHERE repo_version_id = <id for
2.3.2.0 version> and state = 'INSTALLED';
UPDATE hostcomponentstate set upgrade_state = 'NONE';
Start ambari server
Thanks,
Alejandro
________________________________
From: Shaik M <[email protected]>
Sent: Tuesday, November 03, 2015 11:48 PM
To: [email protected]
Subject: Ambari+HDP Upgrade: OUT_OF_SYNC is not allowed to transition directly
into CURRENT
Hi,
I started upgrade for one of my environment from Amabri 1.7/ HDP 2.2 to Ambari
2.1.2 & HDP 2.3.2.0-2950.
During the upgrade everything went well without any issues. During last step
Finalize Upgrade - Save Cluster State getting below error.
Stderr
=======
The cluster stack version state OUT_OF_SYNC is not allowed to transition
directly into CURRENT
I have verified upgrade status with Amabri API. All nodes are showing upgraded
state. Output of the url attached.
http://mst05.corp.com:8080/api/v1/clusters/PRODBDP/stack_versions/2
Please help to resolve this issue.
Thanks,
Shaik