<?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 Get the length of time an oozie workflow took to complete in minutes or seconds. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-length-of-time-an-oozie-workflow-took-to-complete-in/m-p/192590#M65274</link>
    <description>&lt;P&gt;Is there anyway through a command that I could get from the logs and the jobId the length in minutes or seconds that the oozie workflow took to complete.&lt;/P&gt;&lt;P&gt;I can look at the logs and see visually how long the workflow took from the jobId from start time to end time but what about if I would like to store this numerically in a  log file for every jobId.&lt;/P&gt;&lt;P&gt;I could just write the logs of each workflow to the logFile but would rather just have the jobId and the time numerically.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 20:29:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-07-20T20:29:33Z</dc:date>
    <item>
      <title>Get the length of time an oozie workflow took to complete in minutes or seconds.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-length-of-time-an-oozie-workflow-took-to-complete-in/m-p/192590#M65274</link>
      <description>&lt;P&gt;Is there anyway through a command that I could get from the logs and the jobId the length in minutes or seconds that the oozie workflow took to complete.&lt;/P&gt;&lt;P&gt;I can look at the logs and see visually how long the workflow took from the jobId from start time to end time but what about if I would like to store this numerically in a  log file for every jobId.&lt;/P&gt;&lt;P&gt;I could just write the logs of each workflow to the logFile but would rather just have the jobId and the time numerically.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:29:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-length-of-time-an-oozie-workflow-took-to-complete-in/m-p/192590#M65274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-20T20:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get the length of time an oozie workflow took to complete in minutes or seconds.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-length-of-time-an-oozie-workflow-took-to-complete-in/m-p/192591#M65275</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304"&gt;&lt;/A&gt;&lt;/P&gt;@&lt;A href="https://community.hortonworks.com/users/16464/yanks09champs.html"&gt;na&lt;/A&gt;&lt;P&gt;You can use a command like this to get the start and end time and then store it where you wish to:&lt;/P&gt;&lt;PRE&gt;oozie jobs -oozie &lt;A href="http://localhost:11000/oozie" target="_blank"&gt;http://localhost:11000/oozie&lt;/A&gt; -localtime -len 2 -fliter status=RUNNING



Job Id                          Workflow Name         Status     Run  User      Group     Created                Started                 Ended
.----------------------------------------------------------------------------------------------------------------------------------------------------------------
4-20090527151008-oozie-joe     hadoopel-wf           RUNNING    0    joe      other     2009-05-27 15:34 +0530 2009-05-27 15:34 +0530  -
0-20090527151008-oozie-joe     hadoopel-wf           RUNNING    0    joe      other     2009-05-27 15:15 +0530 2009-05-27 15:15 +0530  -
.----------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/PRE&gt;&lt;P&gt;For detailed information see this:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://oozie.apache.org/docs/3.3.2/DG_CommandLineTool.html#Jobs_Operations"&gt;https://oozie.apache.org/docs/3.3.2/DG_CommandLineTool.html#Jobs_Operations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 03:59:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-the-length-of-time-an-oozie-workflow-took-to-complete-in/m-p/192591#M65275</guid>
      <dc:creator>rbiswas1</dc:creator>
      <dc:date>2017-07-21T03:59:07Z</dc:date>
    </item>
  </channel>
</rss>

