Re: Thrift node.js code not working

2015-08-24 Thread Ted Yu
Looking at pom.xml in 0.98 branch I see: thrift.version0.9.0/thrift.version Not sure which thrift version is used in CDH. BTW thrift2 is supported in 0.98 Take a look at hbase-thrift module and its git log. Cheers On Mon, Aug 24, 2015 at 5:47 AM, Chandrashekhar Kotekar

Re: Thrift node.js code not working

2015-08-24 Thread Chandrashekhar Kotekar
Figured it out. I was passing wrong javascript object to that method but now getting ' ERROR thrift.ProcessFunction: Internal error processing get' error in Thrift server logs. Shall I write separate thread about this error? Regards, Chandrash3khar Kotekar Mobile - +91 8600011455 On Mon, Aug

Re: Thrift node.js code not working

2015-08-24 Thread Ted Yu
Which hbase release are you using ? Which version of thrift do you use in your app ? Thanks On Aug 24, 2015, at 5:00 AM, Chandrashekhar Kotekar shekhar.kote...@gmail.com wrote: Hi, I am trying to use following code to test HBase Thrift interface for Node.js but it is not working.

Re: Thrift node.js code not working

2015-08-24 Thread Chandrashekhar Kotekar
I am using HBase 0.98.6 which is shipped with CDH 5.3.0, Thrift compiler version is 0.9.2 and I guess I have started HBase thrift server. I am not sure if Thrift2 is available with 0.98.6 or not and even if it is available not sure how do I start thrift2 service. Regards, Chandrash3khar Kotekar

Re: Thrift node.js code not working

2015-08-24 Thread Chandrashekhar Kotekar
Okay. thanks. Regards, Chandrash3khar Kotekar Mobile - +91 8600011455 On Mon, Aug 24, 2015 at 7:43 PM, Ted Yu yuzhih...@gmail.com wrote: Separate thread would be good - with pastebin of relevant error / exception. Please check region server log as well. On Aug 24, 2015, at 7:05 AM,

Re: Thrift node.js code not working

2015-08-24 Thread Ted Yu
Separate thread would be good - with pastebin of relevant error / exception. Please check region server log as well. On Aug 24, 2015, at 7:05 AM, Chandrashekhar Kotekar shekhar.kote...@gmail.com wrote: Figured it out. I was passing wrong javascript object to that method but now

Thrift node.js code not working

2015-08-24 Thread Chandrashekhar Kotekar
Hi, I am trying to use following code to test HBase Thrift interface for Node.js but it is not working. *var thrift = require('thrift');* *var hbase = require('./gen-nodejs/THBaseService');* *var hbaseTypes = require('./gen-nodejs/hbase_types');* *var connection = thrift.createConnection('nn2',