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.

Services won't restart after upgrading Ambari to 2.4.0.1

Solved Go to solution
Highlighted

Services won't restart after upgrading Ambari to 2.4.0.1

Expert Contributor

Hello

We've upgraded Ambari from 2.1.2.1 to 2.4.0.1 according to the the upgrade guide http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-upgrade/content/ambari_upgrade_gui...

The entire process was successful and was performed according to the guide.

After starting the Ambari i'm able to login and there is a restart indicator near every service (according to point 14 in the guide) http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-upgrade/content/upgrade_ambari.htm...

However - the services won't start \ restart at all. Every service fails with the same error: resource_management.core.exceptions.Fail: Execution of 'ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.3.2.0-2950 --conf-version 0' returned 1. /usr/hdp/2.3.2.0-2950/hadoop/conf does not exist

Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-2602.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-2602.json', 'INFO', '/var/lib/ambari-agent/tmp']

Any ideas ?

Is this a known bug i missed ??

7585-snap-2016-09-13-at-170522.png

7586-snap-2016-09-13-at-170539.png

7587-snap-2016-09-13-at-170552.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Services won't restart after upgrading Ambari to 2.4.0.1

@Adi Jabkowsky

Do you have a symlink inside the "/usr/hdp/2.3.2.0-2950/hadoop/" directory with name "conf" pointing to "/etc/hadoop/2.3.2.0-2950/0" ?

If not then can you create a symlink inside the "/usr/hdp/2.3.2.0-2950/hadoop/" pointing to it like following and then try again:

lrwxrwxrwx.  1 root root        12 Sep 18 06:33 conf -> /etc/hadoop/2.3.2.0-2950/0 

View solution in original post

2 REPLIES 2
Highlighted

Re: Services won't restart after upgrading Ambari to 2.4.0.1

@Adi Jabkowsky

Do you have a symlink inside the "/usr/hdp/2.3.2.0-2950/hadoop/" directory with name "conf" pointing to "/etc/hadoop/2.3.2.0-2950/0" ?

If not then can you create a symlink inside the "/usr/hdp/2.3.2.0-2950/hadoop/" pointing to it like following and then try again:

lrwxrwxrwx.  1 root root        12 Sep 18 06:33 conf -> /etc/hadoop/2.3.2.0-2950/0 

View solution in original post

Highlighted

Re: Services won't restart after upgrading Ambari to 2.4.0.1

Expert Contributor

Thank you ! It was the missing link !

Don't have an account?
Coming from Hortonworks? Activate your account here