<?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: Where can I find the time since the last checkpoint in a HA setup? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125722#M26851</link>
    <description>&lt;P&gt;As far as I know, you cannot add custom conversion logic (like converting from epoch to date). But you might get more eyes watching and better results if you open a new question for this and tag it with ambari and ambari-metrics. &lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2016 00:25:01 GMT</pubDate>
    <dc:creator>ravi1</dc:creator>
    <dc:date>2016-05-04T00:25:01Z</dc:date>
    <item>
      <title>Where can I find the time since the last checkpoint in a HA setup?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125719#M26848</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I got a question concerning monitoring/operating HDFS:&lt;/P&gt;&lt;P&gt;The time since last checkpoint is one of the metrics I want to keep an eye on, i.e. the time since the edits and fsimage were last consolidated to a new fsimage.&lt;/P&gt;&lt;P&gt;In a non-HA environment, you can easily find the time on the Secondary Namenode WebUI at snn-address:50090. &lt;/P&gt;&lt;P&gt;My question is, where to find these informations in a HA-environment. Neither the Activce NameNode nor the Standby NameNode seem to show similar information.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 16:52:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125719#M26848</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2016-05-02T16:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find the time since the last checkpoint in a HA setup?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125720#M26849</link>
      <description>&lt;P&gt;You are right that it is not on the NN UI. &lt;/P&gt;&lt;P&gt;But you can get this from JMX (LastCheckpointTime which shows 1462223090012).&lt;/P&gt;&lt;PRE&gt;{
    "name" : "Hadoop:service=NameNode,name=FSNamesystem",
    "modelerType" : "FSNamesystem",
    "tag.Context" : "dfs",
    "tag.HAState" : "standby",
    "tag.TotalSyncTimes" : "",
    "tag.Hostname" : "demo2.cloud.hortonworks.com",
    "MissingBlocks" : 0,
    "MissingReplOneBlocks" : 0,
    "ExpiredHeartbeats" : 0,
    "TransactionsSinceLastCheckpoint" : -8853,
    "TransactionsSinceLastLogRoll" : 0,
    "LastWrittenTransactionId" : 50372,
    "LastCheckpointTime" : 1462223090012,
    "CapacityTotal" : 44338987008,
    "CapacityTotalGB" : 41.0,
    "CapacityUsed" : 4014164154,
    "CapacityUsedGB" : 4.0,
    "CapacityRemaining" : 13009718052,
    "CapacityRemainingGB" : 12.0,
    "CapacityUsedNonDFS" : 27315104802,
    "TotalLoad" : 22,
    "SnapshottableDirectories" : 0,
    "Snapshots" : 0,
    "LockQueueLength" : 0,
    "BlocksTotal" : 1145,
    "NumFilesUnderConstruction" : 4,
    "NumActiveClients" : 4,
    "FilesTotal" : 1385,
    "PendingReplicationBlocks" : 0,
    "UnderReplicatedBlocks" : 0,
    "CorruptBlocks" : 0,
    "ScheduledReplicationBlocks" : 0,
    "PendingDeletionBlocks" : 0,
    "ExcessBlocks" : 0,
    "PostponedMisreplicatedBlocks" : 0,
    "PendingDataNodeMessageCount" : 4,
    "MillisSinceLastLoadedEdits" : 39983,
    "BlockCapacity" : 2097152,
    "StaleDataNodes" : 0,
    "TotalFiles" : 1385,
    "TotalSyncCount" : 0
  }&lt;/PRE&gt;&lt;P&gt;You could also monitor Standby NN log for this. Below is the log from Standby NN during checkpoint. &lt;/P&gt;&lt;PRE&gt;2016-05-02 17:04:49,810 INFO  ha.StandbyCheckpointer (StandbyCheckpointer.java:doWork(336)) - Triggering checkpoint because it has been 21600 seconds since the last checkpoint, which exceeds the configured interval 21600
2016-05-02 17:04:49,810 INFO  namenode.FSImage (FSImage.java:saveNamespace(1090)) - Save namespace ...
2016-05-02 17:04:50,014 INFO  namenode.NNStorageRetentionManager (NNStorageRetentionManager.java:getImageTxIdToRetain(203)) - Going to retain 2 images with txid &amp;gt;= 50371
2016-05-02 17:04:50,187 INFO  namenode.TransferFsImage (TransferFsImage.java:setTimeout(443)) - Image Transfer timeout configured to 60000 milliseconds
2016-05-02 17:04:50,339 WARN  namenode.FSNamesystem (FSNamesystem.java:getCorruptFiles(7324)) - Get corrupt file blocks returned error: Operation category READ is not supported in state standby
2016-05-02 17:04:50,363 INFO  namenode.TransferFsImage (TransferFsImage.java:uploadImageFromStorage(237)) - Uploaded image with txid 59225 to namenode at &lt;A href="http://demo1.cloud.hortonworks.com:50070" target="_blank"&gt;http://demo1.cloud.hortonworks.com:50070&lt;/A&gt; in 0.222 seconds
2016-05-02 17:04:53,644 WARN  namenode.FSNamesystem (FSNamesystem.java:getCorruptFiles(7324)) - Get corrupt file blocks returned error: Operation category READ is not supported in state standby
2016-05-02 17:05:19,677 INFO  ha.EditLogTailer (EditLogTailer.java:triggerActiveLogRoll(271)) - Triggering log roll on remote NameNode xomdemo1.cloud.hortonworks.com/172.24.64.97:8020
2016-05-02 17:05:21,042 INFO  namenode.FSImage (FSImage.java:loadEdits(834)) - Reading org.apache.hadoop.hdfs.server.namenode.RedundantEditLogInputStream@6fba8d60 expecting start txid #59226 &lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2016 09:11:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125720#M26849</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-03T09:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find the time since the last checkpoint in a HA setup?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125721#M26850</link>
      <description>&lt;P&gt;Thanks, that clears it up!&lt;/P&gt;&lt;P&gt;A follow up question: Is there a way to create a widget for Ambari telling me, how long ago the last checkpoint happened? I see, that I can create a widget showing me the LastCheckpointTime from JMX, but that number is not really intuitive to our Administrators.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 00:15:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125721#M26850</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2016-05-04T00:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find the time since the last checkpoint in a HA setup?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125722#M26851</link>
      <description>&lt;P&gt;As far as I know, you cannot add custom conversion logic (like converting from epoch to date). But you might get more eyes watching and better results if you open a new question for this and tag it with ambari and ambari-metrics. &lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 00:25:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Where-can-I-find-the-time-since-the-last-checkpoint-in-a-HA/m-p/125722#M26851</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-05-04T00:25:01Z</dc:date>
    </item>
  </channel>
</rss>

