本文介绍了运行jps命令时不显示NameNode或Tasktracker ID,虽然它在使用start.sh命令时显示为stats的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
jps命令应显示ID
the jps command should show the ID against
JPS
NameNode
TaskTracker
JobTracker
但是我得到的只是JPS及其ID。其余的工作正常。
But I am getting only the JPS along with its ID. The rest of it is working fine.
4801 Jps
为了方便起见,我尝试过发布屏幕截图,但因为我没有10分或类似的东西,所以不允许。
I tried posting the screen shot for convenience but was not allowed as I don't have 10 points or something like that.
如果还有其他方式,请告诉我,如果您需要查看屏幕截图以帮助我解决问题,请告诉我。
With Regards。
If there is some other way of doing it, if u need to view the screen shot to help me solve my issue, please tell me.With Regards.
推荐答案
如果您使用sudo启动hadoop服务,那么您需要使用sudo权限运行JPS。
If you have started hadoop services with sudo then you need to run JPS with sudo privilege.
$ sudo jps
这篇关于运行jps命令时不显示NameNode或Tasktracker ID,虽然它在使用start.sh命令时显示为stats的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!