<?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 how to read time reported by yarn in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225257#M79757</link>
    <description>&lt;P&gt;how can I convert this start and finish time to normal date format? &lt;/P&gt;&lt;PRE&gt;$ yarn application -status application_1517871817099_0015
Application Report :
        Application-Id : application_1517871817099_0015
        Application-Name : distcp
        Application-Type : MAPREDUCE
        Queue : default
        Application Priority : null
        Start-Time : 1517874876754
        Finish-Time : 1517875501288
        Progress : 100%
        State : KILLED
        Final-State : KILLED
&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Jun 2018 22:45:35 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2018-06-20T22:45:35Z</dc:date>
    <item>
      <title>how to read time reported by yarn</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225257#M79757</link>
      <description>&lt;P&gt;how can I convert this start and finish time to normal date format? &lt;/P&gt;&lt;PRE&gt;$ yarn application -status application_1517871817099_0015
Application Report :
        Application-Id : application_1517871817099_0015
        Application-Name : distcp
        Application-Type : MAPREDUCE
        Queue : default
        Application Priority : null
        Start-Time : 1517874876754
        Finish-Time : 1517875501288
        Progress : 100%
        State : KILLED
        Final-State : KILLED
&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 22:45:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225257#M79757</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-20T22:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to read time reported by yarn</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225258#M79758</link>
      <description>&lt;P&gt;I found two methods online which gives different results , which one is correct ?&lt;/P&gt;&lt;PRE&gt;$ date -d @1517874876754
Tue Jul 16 02:12:34 EDT 50069
&lt;/PRE&gt;&lt;PRE&gt;mysql&amp;gt; select from_unixtime(floor(1517875501288/1000));
+------------------------------------------+
| from_unixtime(floor(1517875501288/1000)) |
+------------------------------------------+
| 2018-02-05 19:05:01                      |
+------------------------------------------+
&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 23:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225258#M79758</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-20T23:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to read time reported by yarn</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225259#M79759</link>
      <description>&lt;P&gt;ok I found three ways to convert correctly the milliseconds unix time to human readable time format &lt;/P&gt;&lt;PRE&gt;mysql&amp;gt; select from_unixtime(floor(1517874876754/1000));
+------------------------------------------+
| from_unixtime(floor(1517874876754/1000)) |
+------------------------------------------+
| 2018-02-05 18:54:36                      |
+------------------------------------------+
1 row in set (0.00 sec)

$ awk '{print strftime("%c", ( 1517874876754 + 500 ) / 1000 )}'
Mon 05 Feb 2018 06:54:37 PM EST

$ date -d @$(  echo "(1517874876754+ 500) / 1000" | bc)
Mon Feb  5 18:54:37 EST 2018


&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 23:30:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-read-time-reported-by-yarn/m-p/225259#M79759</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2018-06-20T23:30:38Z</dc:date>
    </item>
  </channel>
</rss>

