node-oozie

Node.js module used as a client to send rest requests to oozie server

npm install node-oozie
2 downloads in the last week
4 downloads in the last month

A NodeJS Client for Oozie web-services API

Oozie is a workflow scheduler system to manage Apache Hadoop jobs.

The node-oozie module facilitates the Oozie web-services api integration.

Installation

npm install node-oozie

Usage

Configuration

 var config = {
        "protocol": "[PROTOCOL]",
    "url": "[HOST]",
        "port": "[PORT]",
        "version": "[OOZIE VERSION]"
    };
var Oozie = require('node-oozie');  
var oozie = Oozie.createClient({ config: config });

Methods

GET

oozie.get(url, function(error, response){ ... });

POST

oozie.post(url, data, function(error, response){ ... });

PUT

oozie.put(url, data, function(error, response){ ... });

Example

Request

oozie.get('versions', function(error, response) {
      console.log(response);
});

Response

[0, 1]
npm loves you