Sunday, 4 June 2017

nodejs connection to hbase

I have worked with Java hbase client, connecting to an hbase installation and performing table functions.I need to learn how to do this with nodejs and found some results that include the use of thrift and the use of the REST api. Would like a resource that provides detailed instructions on installation of the required tools to setup and a simple tutorial. The hbase is already setup and I need to know if changes will need to be made on that server to allow REST access. Could someone please provide resources on how to implement this?

I found this link but I immediately get errors on the first step.

https://www.npmjs.com/package/node-hbase

 npm install hbase

 > krb5@0.1.0 install /root/node_modules/krb5
 > node-gyp rebuild

 make: Entering directory `/root/node_modules/krb5/build'
 CXX(target) Release/obj.target/krb5/src/base64.o
 make: g++: Command not found
 make: *** [Release/obj.target/krb5/src/base64.o] Error 127
  make: Leaving directory `/root/node_modules/krb5/build'
 gyp ERR! build error
 gyp ERR! stack Error: `make` failed with exit code: 2
 gyp ERR! stack     at ChildProcess.onExit 
 (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
 gyp ERR! stack     at emitTwo (events.js:106:13)
 gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:215:12)



via vbNewbie

No comments:

Post a Comment