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.

Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

New Contributor
ambari-server-log.png

am facing the same issue again. i was restarted my nodes for some different requirement from the point of server restart am not able to start my ambari-server. Its started but in few seconds showing not running

5 REPLIES 5
Highlighted

Re: Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

Re: Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

New Contributor

Thanks mukesh for response will check the link and revert you .

Re: Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

@dharmaraj sonawane

Looks like you are getting NoClassDefFoundError "org.json.simple.JSONObject" in your screenshot (ambari-server.log) and the stackTarce says that it is while Ambari View Registration. So can you please check the following locations to see if you have the "json-simple" JAR present or not? (The version might be different in your case For example in my case it is ambari 2.2.2)

/var/lib/ambari-server/resources/views/work/FILES{1.0.0}/WEB-INF/lib/json-simple-1.1.1.jar
/var/lib/ambari-server/resources/views/work/TEZ{0.7.0.2.3.4.0-460}/WEB-INF/lib/json-simple-1.1.1.jar
/var/lib/ambari-server/resources/views/work/HIVE{1.0.0}/WEB-INF/lib/json-simple-1.1.1.jar
/var/lib/ambari-server/resources/views/work/PIG{1.0.0}/WEB-INF/lib/json-simple-1.1.1.jar
/var/lib/ambari-server/resources/views/work/CAPACITY-SCHEDULER{1.0.0}/WEB-INF/lib/json-simple-1.1.1.jar 
/var/lib/ambari-server/resources/views/work/SLIDER{2.0.0}/WEB-INF/lib/json-simple-1.1.1.jar

Re: Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

@dharmaraj sonawane

Else try the following move the "work" directory to some other directory and then try restart Ambari server it will recreate the correct "work" directory.

mv /var/lib/ambari-server/resources/views/work  /var/lib/ambari-server/resources/views/work_BAD
ambari-server restart

Re: Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid

New Contributor

Thanks Joy for the reply.

Actually my cluster is deployed on testing environment so because of emergency i was demolished installed cluster and created newer one that works fine now.

Am waiting for response from community help for 4-5 hours but didn't got any response so finally I was recreated it.

If I face same issue again i will follow your solution and revert you the feedback accordingly.

Thanks,

Dharmaraj.