Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDP upgrade is struck at upgrade in progress

Highlighted

HDP upgrade is struck at upgrade in progress

Expert Contributor

hdp-upgrade-error.jpg As attached, upgrade is showing in progress and is not showing any update. Cna you guide me on where to check and what to do

5 REPLIES 5
Highlighted

Re: HDP upgrade is struck at upgrade in progress

Mentor

Please provide Ambari logs, result of command

ps aux | grep yum
Highlighted

Re: HDP upgrade is struck at upgrade in progress

Expert Contributor

ps aux | grep yum

hdfs 15310 0.0 0.0 112644 952 pts/1 R+ 04:48 0:00 grep --color=auto yum

Highlighted

Re: HDP upgrade is struck at upgrade in progress

@Krishna Srinivas

Your best shot is ambari server log

tail -f /var/log/ambari-server/ambari-server.log

Highlighted

Re: HDP upgrade is struck at upgrade in progress

@Krishna Srinivas

Review What to Check when upgrade / downgrade seems to be stuck? when it is published.

Meanwhile, are you able to click on 'Upgrade in Process'? apart from reviewing the ambari-server log, try the following URL's to find whats happening:

Use Ambari URL's to find what are the failures

http://<ambari-server>:8080/api/v1/clusters/c1/upgrades

For eg

http://vcert1.novalocal:8080/api/v1/clusters/VCertify/upgrades

This would show all the upgrade or downgrade attempts. for eg if this is a upgrade failure, identify the latest Upgrade attempt number

http://vcert1.novalocal:8080/api/v1/clusters/VCertify/upgrades/119?fields=upgrade_groups/upgrade_ite...
  1. this would list all the actions taken as part of upgrade attempt 119.

Review the output to identify those JSON outputs without status 'COMPLETED'. This would give a clue to what items have failed to move to COMPLETED status and troubleshoot from there on.

Re: HDP upgrade is struck at upgrade in progress

Take a look at this article, https://community.hortonworks.com/articles/29499/ambari-troubleshooting-a-rolling-or-express-upgrad....

It has instructions on what to query and how to fix it. If you still need help, please include the results of the DB queries.

SELECT version, state FROM cluster_version cv JOIN repo_version rv ON cv.repo_version_id = rv.repo_version_id ORDER BY version DESC;

-- Find how many hosts are in each state
SELECT version, state, COUNT(*) FROM host_version hv JOIN repo_version rv ON hv.repo_version_id = rv.repo_version_id GROUP BY version, state ORDER BY version DESC, state;
Don't have an account?
Coming from Hortonworks? Activate your account here