-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
I can't seem to have the HBase client close all connections and all the Node.js process to exit normally. I've tried iterating the client.servers and calling .close() against each of them but I just receive a message about the connection being closed with no error and the Node.js process stays open (no other code is contained).
Exampe:
var HBase = require('hbase-client');
var client = HBase.create({zookeeperHosts: ['127.0.0.1:2181']});
client.getRow('table', 'rowName', ['field'], function(err, row) {
console.log(row);
// How do I close the connection?
for (var name in client.servers) {
console.log('Closing connection to ' + name + '.');
client.servers[name].close();
}
});This script, doesn't ever finish executing for me.
Metadata
Metadata
Assignees
Labels
No labels