Ambari shows service as stopped

 ̄綄美尐妖づ 提交于 2019-12-24 15:31:08

问题


We are using Hortonworks HDP 2.1 with Ambari 1.6.1

After a crash in our underlying hardware we restarted our cluster some days ago. We got everything back up again, however, Ambari shows that two services are still down, the YARN Resource Manager and the MapReduce History Server. Both of those services are running, verified both by checking running processes on the server as well as checking the provided functionality. Nagios healthchecks are also ok. Still, Ambari shows the services as being stopped. Trying to start them does not work (Address already in use, which is to be expected, because it is already running). If the process is killed before starting, then it will be started, but will still be displayed as an failed operation and Ambari will continue to display the service as being stopped.

Anyone else has seen a similar problem before? I could not find any information about similar cases anywhere.


回答1:


I have experienced similar issues in the past and it was due to permissions on a PID file. Take a look at the service descriptor files for YARN to see what files it checks to see if it's running. Typically it reads a pid and checks if the process listed in the pid file is running. I would discover the location of the pid file it checks then stop the service, delete the pid files, then use ambari to restart the services. This should recreate the pid files with the correct user/group and permissions and ultimately fix the issue you are seeing.



来源:https://stackoverflow.com/questions/34590134/ambari-shows-service-as-stopped

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!