Created 02-16-2016 04:10 AM
The agent which is running on ambari-server node is not able to create pid file but when we check the process, the agent process is running in the back ground.However when we check the status using ambari-agent status.. it is reporting as the agent NOT running. The reason is because there is no pid file created when we tried to start the ambari-agent.
Could you please help us identify the reason why it is not create PID file?
We have ambari 2.2.0 running on RH 6.6 and ambari-server and ambari-agent are running as root.
Created 02-16-2016 05:02 AM
In /etc/ambari-agent/conf/ambari-agent.ini check an entry called pidlookuppath, the pid file will be written there. The path is usually /var/run/ and ambari-agent will create a directory there called, predictably, ambari-agent. Create that directory if it doesn't exist and try to restart the agent. Also check permissions, those of directories should be 755, and ownership root:root if you run the agent as root.
Created 02-16-2016 05:02 AM
In /etc/ambari-agent/conf/ambari-agent.ini check an entry called pidlookuppath, the pid file will be written there. The path is usually /var/run/ and ambari-agent will create a directory there called, predictably, ambari-agent. Create that directory if it doesn't exist and try to restart the agent. Also check permissions, those of directories should be 755, and ownership root:root if you run the agent as root.
Created 02-16-2016 11:08 AM
you might have a stale pid with wrong permissions. I've seen this before. Delete the pid, check permissions on directory, make sure directory is not mounted as noexec.