node-oozie

0.0.1 • Public • Published

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]

Dependents (0)

Package Sidebar

Install

npm i node-oozie

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • alextanti