Ambari显示服务已停止 [英] Ambari shows service as stopped

查看:288
本文介绍了Ambari显示服务已停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将Hortonworks HDP 2.1与Ambari 1.6.1一起使用

We are using Hortonworks HDP 2.1 with Ambari 1.6.1

底层硬件崩溃后,几天前我们重新启动了集群.我们又恢复了一切,但是,Ambari显示了两个服务仍处于关闭状态,即YARN Resource Manager和MapReduce History Server.这两个服务都在运行,通过检查服务器上正在运行的进程以及检查提供的功能来进行验证. Nagios健康检查也可以.尽管如此,Ambari仍显示服务已停止.尝试启动它们不起作用(地址已经在使用中,可以预料,因为它已经在运行).如果该进程在启动之前被终止,则它将启动,但仍将显示为失败的操作,并且Ambari将继续将服务显示为已停止.

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.

推荐答案

我过去也遇到过类似的问题,这是由于对PID文件的权限所致.查看YARN的服务描述符文件,查看它检查哪些文件以查看其是否正在运行.通常,它读取pid并检查pid文件中列出的进程是否正在运行.我会发现它检查的pid文件的位置,然后停止服务,删除pid文件,然后使用ambari重新启动服务.这应该使用正确的用户/组和权限重新创建pid文件,并最终解决您遇到的问题.

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.

这篇关于Ambari显示服务已停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆