<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to check uptime of hadoop services in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214837#M77032</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Similarly for HBase processes you can run the following command to find the Uptime of HBase Master &amp;amp; HBase Region Server.   &lt;/P&gt;&lt;PRE&gt;# ps -ef | grep `cat /var/run/hbase/hbase-hbase-master.pid`| awk 'NR==1{print $5 " - "  $7}'
# ps -ef | grep `cat /var/run/hbase/hbase-hbase-regionserver.pid`| awk 'NR==1{print $5 " - "  $7}'&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 06:27:05 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-04-10T06:27:05Z</dc:date>
    <item>
      <title>how to check uptime of hadoop services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214835#M77030</link>
      <description>&lt;P&gt;I want to check from when  hadoop services are up or running . is there some command to check same ?&lt;/P&gt;&lt;P&gt;for e.g if there is hbase service i want to check its uptime in other way its last start time . in the same way I want to check for other hadoop services as well.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 01:52:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214835#M77030</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-04-10T01:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to check uptime of hadoop services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214836#M77031</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The HDFS Service is a combination of various components like NameNoides, DataNodes, ZKFC, JournalNodes ..etc     So the Service Up time really does not make much sense because in a Service 90% components might be UP but some of them (10%) might be down ...   So i will suggest you to check the "Service Component"  UP time instead of finding the "Service" up time.&lt;/P&gt;&lt;P&gt;The easiest option to capture the "Service Component" uptime will be to see the "uptime" field in the following command for the component:&lt;/P&gt;&lt;P&gt;For example finding DataNode Uptime:&lt;/P&gt;&lt;PRE&gt;# ps -ef | grep `cat /var/run/hadoop/hdfs/hadoop-hdfs-datanode.pid` | awk 'NR==1{print $5 " - "  $7}'
Mar02 - 03:43:47
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Similarly you can run the following commands to find NameNode, JournalNode Uptime ...etc&lt;/P&gt;&lt;PRE&gt;#  ps -ef | grep `cat /var/run/hadoop/hdfs/hadoop-hdfs-journalnode.pid` | awk 'NR==1{print $5 " - "  $7}'
#  ps -ef | grep `cat /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid` | awk 'NR==1{print $5 " - "  $7}'
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The output of Column 5 and column 7 shows the Uptime (date &amp;amp; time)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;#  ps -ef | grep `cat /var/run/hadoop/hdfs/hadoop-hdfs-namenode.pid`
root       519 31846  0 23:23 pts/0    00:00:00 grep --color=auto 17262
hdfs     17262     1  0 Mar02 ?        07:55:29 /usr/jdk64/jdk1.8.0_112/bin/java -Dproc_namenode -Xmx1024m -Dhdp.version=2.6.1.0-129 -Djava.net.preferIPv4Stack=true -Dhdp.version= -Djava.net.preferIPv4Stack=true -Dhdp.version= -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop/hdfs..........
 -Dhadoop.security.logger=INFO,RFAS org.apache.hadoop.hdfs.server.namenode.NameNode&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:24:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214836#M77031</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-10T06:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to check uptime of hadoop services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214837#M77032</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Similarly for HBase processes you can run the following command to find the Uptime of HBase Master &amp;amp; HBase Region Server.   &lt;/P&gt;&lt;PRE&gt;# ps -ef | grep `cat /var/run/hbase/hbase-hbase-master.pid`| awk 'NR==1{print $5 " - "  $7}'
# ps -ef | grep `cat /var/run/hbase/hbase-hbase-regionserver.pid`| awk 'NR==1{print $5 " - "  $7}'&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:27:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-check-uptime-of-hadoop-services/m-p/214837#M77032</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-10T06:27:05Z</dc:date>
    </item>
  </channel>
</rss>

