below is the code i used for connecting to hbase it is working fine but when it return a data it is returning in buffer.
var thrift = require('thrift');
var HBase = require('../gen-nodejs/Hbase');
var HBaseTypes = require('../gen-nodejs/HBase_types');
var connection = thrift.createConnection(host, port,
{
transport: thrift.TBufferedTransport,
protocol: thrift.TBinaryProtocol
});
var client = thrift.createClient(HBase, connection);
----------------------
client.getTableNames(function (err, data) {
if (err)
console.log('get tablees error:', err);
else {
console.log('Tables:', data);
}
});
below is the code i used for connecting to hbase it is working fine but when it return a data it is returning in buffer.
var thrift = require('thrift');
var HBase = require('../gen-nodejs/Hbase');
var HBaseTypes = require('../gen-nodejs/HBase_types');
client.getTableNames(function (err, data) {
if (err)
console.log('get tablees error:', err);
else {
console.log('Tables:', data);
}
});