Skip to content

sunui/nopala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nopala

Impala and Hive client for Nodejs. Support both of Beeswax and Hiveserver2. Base on Thrift.

TODO

  • connection pool

reference:

Dependencies

  • thrift

versions

  • Nodejs v10
  • Impala cdh6.3.0
  • hive release-2.3.3
  • Thrift 0.12.0

examples

npm install nopala

hs2

import {createConnection} from 'nopala';

const connection = createConnection({
	protocol:'hiveserver2',
	host: '0.0.0.0',
	port: '21050',
});

connection.connect();

connection.query(`select * from db.tb limit 1;`).then(result=>{
	console.log(result);
}).finally(()=>{
	connection.close();
})

beeswax

import {createConnection} from 'nopala';

const connection = createConnection({
  protocol: 'beeswax'
  host: '0.0.0.0',
  port: 21000,
});

connection.connect();

connection.query(`select * from db.tb limit 1;`).then(result=>{
	console.log(result);
}).finally(()=>{
	connection.close();
})

About

Impala and Hive client for Nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published