SistemaStrategy / HiveThrift

Node API for fast querying of Hive using Thrift middleware
1 stars 4 forks source link

HiveThrift

HiveThrift is a node API for fast querying of Hive using Thrift middleware.

Prerequisite

Install

Install from sources

To install HiveThrift you need to checkout the sources: git clone git://github.com/SistemaStrategy/HiveThrift.git

Install using npm

To install HiveThrift using npm, use the following command :

npm install hive-thrift

If you're using a Vagrant box, use the --no-bin-links argument

npm install hive-thrift --no-bin-links

Getting Started

From sources

From npm

Example code

Some API uses are shown in the examples folder. Don't forget to change the require part if you're using npm install ...

Hive configuration

The Hive configuration is stored in a config.json file present in the root directory of the project. The host must be pointing to the HiveServer2 instance.

API documentation

TODO