How to check if Hadoop daemons are running?

后端 未结 9 1003
醉梦人生
醉梦人生 2021-02-02 10:33

What are simple commands to check if Hadoop daemons are running?

For example if I\'m trying to figure out why HDFS is not setup correctly I\'ll want to know a way to ch

9条回答
  •  走了就别回头了
    2021-02-02 11:14

    To check deamons are running?

    You can check with jps command

    use use below commands also

    ps -ef | grep -w namenode
    

    ps -ef | grep -w datanode

    ps -ef | grep -w tasktracker 
    

    -w :- will help to fetch the exact string

    If you have Superuser privilege then you can also use below one for the same:

    ./hadoop dfsadmin -report
    

    Hope this will help !!!

提交回复
热议问题