07-20-2014 08:16 AM
12-14-2015 12:07 PM
I've never used node.js before but there seem to be two options:
1) As Harsh suggested, thrift can be used to generate an impala client. There is a generic thrift example is at https://thrift.apache.org/tutorial/nodejs . The best impala specific example I could find is a python test case but it should be very similar to what would be done in js https://github.com/cloudera/Impala/blob/cdh5-2.3.0_5.5.0/tests/hs2/test_fetch.py#L127 .
2) An easier option may be to use https://www.npmjs.com/package/jdbc + http://www.cloudera.com/content/www/en-us/downloads/connectors/impala/jdbc/2-5-29.html .
02-06-2016 02:38 PM - edited 02-06-2016 02:44 PM
I've created a node module (Impala Client) but haven't published yet. I will make some changes then publish it soon. If you need it as module immediately mail me but if you only need the code that gathers data from HDFS using Impala just mimic the code in the test folder. The code in the test.js file is enough, I have tested it and it's working fine.