Hi Jose,
Please take a look at
https://community.hortonworks.com/articles/29499/ambari-troubleshooting-a-rolling-or-express-upgrad.html
Can you provide this,
SELECT repo_version_id, version, display_name FROM repo_version;
SELECT repo_version_id, state FROM cluster_version ORDER BY repo_version_id;
SELECT repo_version_id, state, COUNT(*) FROM host_version GROUP BY
repo_version_id, state ORDER BY repo_version_id, state;
SELECT service_name, component_name, version, host_id, upgrade_state FROM
hostcomponentstate WHERE version <> '2.5.0.0-1245' AND service_name NOT IN
('AMBARI-METRICS') and component_name NOT IN ('ZKFC', 'KERBEROS_CLIENT') ORDER
BY service_name, component_name, host_id;
My guess is that at least one host has a host_version record that's not
UPGRADED, and hence the cluster_version is not UPGRADED.
This will help identify which host and which components are not yet on the
newer version.
Once you know that, ssh onto that host and run, "hdp-select set all
2.5.0.0-1245".
You may then "Pause" the upgrade to regain control of the cluster ops through
the UI, then restart the affected components from the Host Details page (if
it's a client, then you only need to do "Refresh Configs").
Next, you can "Resume" the upgrade in order to "Finalize".
Thanks,
Alejandro
From: José Manuel Molero <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Date: Friday, October 28, 2016 at 10:58 AM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: Ambari, upgrading HDP to 2.5 fail save cluster status
Hi all,
I am using the Hortonworks Hadoop distribution with Ambari. I try to upgrade
from HDP 2.4 to 2.5 and I am using Ambari 2.4.1.
I try to upgrade using ambari following this guide:
https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-upgrade/content/upgrading_hdp_stack.html
point by point.
But always at the end, when the upgrade is finalizing I have always the same
error:
The following 1 host(s) have not been upgraded to version 2.5.0.0-1245. Please
install and upgrade the Stack Version on those hosts and try again.
Hosts: client.hadoop
But the stack is installed. I check with:
hdp-select versions
2.4.0.0-169
2.5.0.0-1245
And all the packages are using the version 2.5.0.0-1245
And ambari is not able to save the status of the cluster.
Any help to try to debug would be really helpful.
Thanks in advance.