Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Get the length of time an oozie workflow took to complete in minutes or seconds.

Solved Go to solution

Get the length of time an oozie workflow took to complete in minutes or seconds.

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.

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.

I could just write the logs of each workflow to the logFile but would rather just have the jobId and the time numerically.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Get the length of time an oozie workflow took to complete in minutes or seconds.

@na

You can use a command like this to get the start and end time and then store it where you wish to:

oozie jobs -oozie http://localhost:11000/oozie -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  -
.----------------------------------------------------------------------------------------------------------------------------------------------------------------

For detailed information see this:

https://oozie.apache.org/docs/3.3.2/DG_CommandLineTool.html#Jobs_Operations

View solution in original post

1 REPLY 1
Highlighted

Re: Get the length of time an oozie workflow took to complete in minutes or seconds.

@na

You can use a command like this to get the start and end time and then store it where you wish to:

oozie jobs -oozie http://localhost:11000/oozie -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  -
.----------------------------------------------------------------------------------------------------------------------------------------------------------------

For detailed information see this:

https://oozie.apache.org/docs/3.3.2/DG_CommandLineTool.html#Jobs_Operations

View solution in original post

Don't have an account?
Coming from Hortonworks? Activate your account here