node-oozie

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

Usage no npm install needed!

<script type="module">
  import nodeOozie from 'https://cdn.skypack.dev/node-oozie';
</script>

README

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]