wdavidw/node-hbase — Issue #3: Node dies when HBase is offline
Author: whizz
Created: 2011-11-29 16:01:59+00:00
State: open

I have this simple code:

```javascript
var hbase = require('hbase');

hbase({host: 'localhost', port: 8080})
.getVersionCluster( function( error, versionCluster ){
if (error) {
console.log(error);
} else {
console.log( versionCluster );
}
} );
```

When HBase (or Stargate) is not running, the script dies with error, that I am unable to catch in any way:

```
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: socket hang up
at createHangUpError (http.js:1092:15)
at Socket. (http.js:1175:27)
at Socket.emit (events.js:88:20)
at Array.0 (net.js:300:10)
at EventEmitter._tickCallback (node.js:192:40)
```

Node version is the latest 0.6.3. But the same issue manifests in 0.6.1, both Windows and Linux.

Thanks for any ideas.