Skip to content

Closing connections #82

@misterdai

Description

@misterdai

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions