decode protobuf response from Hbase on node js
<p>I'm trying to connect HBase from a node js application</p>

<p>since we are using HBase version 1.0.0 i am using npm module <a href="https://www.npmjs.com/package/hbase-rpc-client" rel="nofollow">hbase-rpc-client</a></p>

<p>i've been able to get the response from hbase, but the response is a protobuf object, and i can't find any way of parsing it back to json</p>

<p>i've tried using <a href="https://www.npmjs.com/package/protobufjs" rel="nofollow">protobufjs</a>, but i still can't understand how to parse it.</p>

<p>my code is as follows:</p>

<pre><code>var hbase = require('hbase-rpc-client')
var buffer = require('protobufjs')
var client = hbase({
    zookeeperHosts:['localhost:2181']
})

client.on('error',function(err){console.log(err)})

var Get = new hbase.Get('1')

client.get('testTable',Get,function(err,res){
   if(err){
     console.log(err)
   }
   else{
     var parser = new buffer.DotProto.Parser(res)
   }
})
</code></pre>