0.0.1 • Published 13 years ago
node-oozie v0.0.1
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-oozieUsage
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]0.0.1
13 years ago