Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/davidemiceli/drillnode
- Owner: davidemiceli
- License: mit
- Created: 2017-12-08T21:16:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T09:46:46.000Z (about 7 years ago)
- Last Synced: 2024-11-21T14:41:05.630Z (about 1 month ago)
- Topics: apache-drill, bigdata, datascience, hadoop, hdfs, node-js, nosql
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
});
```