How to check if Hadoop daemons are running?

后端 未结 9 998
醉梦人生
醉梦人生 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:07

    you can use Jps command as vipin said like this command :

    /usr/lib/java/jdk1.8.0_25/bin/jps  
    

    of course you will change the path of java with the one you have "the path you installed java in"
    Jps is A nifty tool for checking whether the expected Hadoop processes are running (part of Sun’s Java since v1.5.0).
    the result will be something like that :

    2287 TaskTracker  
    2149 JobTracker  
    1938 DataNode  
    2085 SecondaryNameNode  
    2349 Jps  
    1788 NameNode  
    

    I get the answer from this tutorial: http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

提交回复
热议问题