Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidemiceli/drillnode

Node.js client for Apache Drill
https://github.com/davidemiceli/drillnode

apache-drill bigdata datascience hadoop hdfs node-js nosql

Last synced: 28 days ago
JSON representation

Node.js client for Apache Drill

Awesome Lists containing this project

README

        

# 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
```javascript
// 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//apache-drill-/sample-data/region.parquet` WHERE R_NAME = 'AFRICA'")
.then(function(resdata) {
console.log(resdata);
})
.catch(function(err) {
console.log(err);
});
```