Node API using thrift to query Hive
npm install hive-thriftgit clone git://github.com/SistemaStrategy/HiveThrift.git
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
$3
* Update the config.json file with your settings
* Execute the following commands:
`
npm install
npm test
`
Once your database settings are corrects, use the examples folder to create a program and run it like the following
`
node your_program.js | ./node_modules/bunyan/bin/bunyan
`
Bunyan is a simple and fast JSON logging library for node.js service. A bunyan CLI tool is provided (./node_modules/bunyan/bin/bunyan) for pretty-printing bunyan logs and for filtering.
To learn more about Bunyan click here.
$3
* Create a config.json file in the root directory of your project like the config.json present here
* Write your node program like here and don't forget to use the library by using the following import
`
var client = require('hive-thrift');
``