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 2.4.3 Up-grade error in Ambari 2.2 services failed

Highlighted

HDP 2.4.3 Up-grade error in Ambari 2.2 services failed

Expert Contributor

As part of up-grade 2.1 to 2.4.2 , services getting failed with below error

56487-up-grade-error.jpg

var/lib/ambari-agent/data/output-2791.txt
 2018-01-27 23:35:26,108 - In the middle of a stack upgrade/downgrade for Stack HDP and destination version 2.4.3.0-227, determining which hadoop conf dir to use.
2018-01-27 23:35:26,108 - Hadoop conf dir: /usr/hdp/2.4.3.0-227/hadoop/conf
2018-01-27 23:35:26,108 - The hadoop conf dir /usr/hdp/2.4.3.0-227/hadoop/conf exists, will call conf-select on it for version 2.4.3.0-227
2018-01-27 23:35:26,108 - Checking if need to create versioned conf dir /etc/hadoop/2.4.3.0-227/0
2018-01-27 23:35:26,109 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.3.0-227 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-01-27 23:35:26,137 - call returned (1, '/etc/hadoop/2.4.3.0-227/0 exist already', '')
2018-01-27 23:35:26,137 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.3.0-227 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-01-27 23:35:26,164 - checked_call returned (0, '')
2018-01-27 23:35:26,165 - Ensuring that hadoop has the correct symlink structure
2018-01-27 23:35:26,165 - Using hadoop conf dir: /usr/hdp/2.4.3.0-227/hadoop/conf
2018-01-27 23:35:26,290 - In the middle of a stack upgrade/downgrade for Stack HDP and destination version 2.4.3.0-227, determining which hadoop conf dir to use.
2018-01-27 23:35:26,290 - Hadoop conf dir: /usr/hdp/2.4.3.0-227/hadoop/conf
2018-01-27 23:35:26,290 - The hadoop conf dir /usr/hdp/2.4.3.0-227/hadoop/conf exists, will call conf-select on it for version 2.4.3.0-227
2018-01-27 23:35:26,290 - Checking if need to create versioned conf dir /etc/hadoop/2.4.3.0-227/0
2018-01-27 23:35:26,290 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.3.0-227 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-01-27 23:35:26,318 - call returned (1, '/etc/hadoop/2.4.3.0-227/0 exist already', '')
2018-01-27 23:35:26,318 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.3.0-227 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-01-27 23:35:26,346 - checked_call returned (0, '')
2018-01-27 23:35:26,346 - Ensuring that hadoop has the correct symlink structu
2 REPLIES 2

Re: HDP 2.4.3 Up-grade error in Ambari 2.2 services failed

Expert Contributor

On given path files are exist , reason for service restart failure ?

root@~]# ll /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py
-rwxr-xr-x 1 root root 1108 May 6 2016 /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py
[root@~]#

Re: HDP 2.4.3 Up-grade error in Ambari 2.2 services failed

Expert Contributor

After Up-grade failed to HDP 2.4 no option left with cleaned HDP and Ambari 2.2 on all server and re-install Ambari 2.2 and HDP 2.4 version

1) Ambari Cleanup on server and slave nodes for ambari-agent

****Ambari-server****
#ambari-server stop 
#yum erase ambari-server

*****Ambari-agent server***
$ambari-agent stop 
#yum erase ambari-agent

2) Repo Clean-up an all server

#cd /etc/yum.repo.d/
#rm -rf hdp* ambari*
#yum clean all

3) for Clean-up of user, directory and logs (its delete all HDP users required to run on all server )

# python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent

4) Verify still any rpm on server and if exist uninstall the rpm

#rpm -qa |grep hdp*

#rpm -qa grep hadoop*

#yum remove hadoop*

#yum remove hdp*