The Wayback Machine - https://web.archive.org/web/20201004092545/https://github.com/davidemiceli/drillnode
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Node.js client for Apache Drill

Drillnode is a client to connect and execute queries on Apache Drill from Node.js using the REST APIs.

Installation

To install drillnone with npm package manager

npm install drillnode

Getting Started

// Requirements
const Drill = require('drillnode');

// Init Drill client
const drill = new Drill({
  url: 'http://localhost:8047'
});

// Make a query
drill.query("SELECT * FROM dfs.`home/<USERNAME>/apache-drill-<VERSION>/sample-data/region.parquet` WHERE R_NAME = 'AFRICA'")
.then(function(resdata) {
  console.log(resdata);
})
.catch(function(err) {
  console.log(err);
});

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.