Hi Charles, Can you please update the usage documentation for Apache Drill Client for NodeJS, do we need the Drill JDBC driver in there ? I tried the following,
Node version is [root@test-01 drill-1.15.0]# node --version v6.16.0 [root@test-01 drill-1.15.0]# cat /etc/centos-release CentOS Linux release 7.3.1611 (Core) yum install npm npm install drill-client On the page available on below URL Apache Drill Client for NodeJS https://github.com/cgivre/drill-nodejs Usage To query Drill, the .execute() or .query() functions var client = new Drill.Client({hostname:'localhost', port:8047}); client.query('SELECT * FROM cp.`employee.json` LIMIT 10', function(error, data, columns){ console.log({data: data['rows'], columns: data['columns'], error: error}); }); I hit this error when I tried the above example on my machine which is running drill-1.15.0 [root@test-01 ~]# node test-node-drill.js /root/test-node-drill.js:1 (function (exports, require, module, __filename, __dirname) { var client = new Drill.Client({hostname:'localhost', port:8047}); ^ ReferenceError: Drill is not defined at Object.<anonymous> (/root/test-node-drill.js:1:80) at Module._compile (module.js:577:32) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9) at bootstrap_node.js:507:3 Thanks, Khurram
