Skip to content

data from hbase is returning in buffer #1

@RAKESH1256

Description

@RAKESH1256

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);
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions