Giter Site home page Giter Site logo

sunmeng007 / ooziejmslistener Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rkanter/ooziejmslistener

0.0 1.0 0.0 16 KB

This tool will listen for Oozie's JMS notification messages for jobs and for SLAs

License: Apache License 2.0

Shell 2.52% Java 97.48%

ooziejmslistener's Introduction

OozieJMSListener

This tool will listen for JMS notification messages for jobs and for SLAs.
It is based on: http://archive.cloudera.com/cdh5/cdh/5/oozie/DG_JMSNotifications.html

Build

./build.sh [-Doozie.version=<version>] [passthrough-maven-opts]

The oozie.version can be any Oozie version (CDH or Apache). It defaults to CDH 5.9.0.

While a specific version is required for compiling, it should be able to connect to any version of Oozie that supports JMS Notifications.

Run

./run.sh <oozie-url> [-username <username>] [-jobid <jobId>]

Sample Output

$ ./run.sh http://rkanter-5.ent.cloudera.com:11000/oozie -username admin
JNDI Properties
===============
-- listing properties --
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInit...
java.naming.provider.url=tcp://rkanter-5.ent.cloudera.com:61616
connectionFactoryNames=ConnectionFactory

Listening on topics:
	admin
	flows


=== Job Message ===
JMSTopic            : flows
JMSTimestamp        : Fri Mar 28 14:13:12 PDT 2014
JMSMessageID        : ID:rkanter-5.ent.cloudera.com-58838-1396040552669-1:1:4:3:1
appType             : WORKFLOW_JOB
id                  : 0000002-140328140155969-oozie-oozi-W
parentId            : 0000000-140328135718092-oozie-oozi-C@4
startTime           : Fri Mar 28 14:12:13 PDT 2014
endTime             : Fri Mar 28 14:13:10 PDT 2014
eventStatus         : SUCCESS
appName             : MapReduce
user                : admin

...

=== SLA Message ===
JMSTopic            : admin
JMSTimestamp        : Mon Apr 07 15:52:43 PDT 2014
JMSMessageID        : ID:rkanter-5.ent.cloudera.com-52410-1396574282684-1:1:8:18:1
appType             : WORKFLOW_JOB
id                  : 0000012-140403181356152-oozie-oozi-W
parentId            : null
nominalTime         : Wed Apr 02 23:00:00 PDT 2014
expectedStartTime   : Wed Apr 02 23:10:00 PDT 2014
actualStartTime     : Mon Apr 07 15:51:07 PDT 2014
expectedEndTime     : Wed Apr 02 23:30:00 PDT 2014
actualEndTime       : Mon Apr 07 15:52:16 PDT 2014
expectedDuration    : 1800000
actualDuration      : 69218
notificationMessage : woot
upstreamApps        : blah
user                : admin
appName             : MapReduce-SLA
eventStatus         : DURATION_MET
slaStatus           : MISS

...

ooziejmslistener's People

Contributors

rkanter avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.