I have used node-hive and thrift for connecting my node js application to hive, but none of them works. Are there any other node modules for getting connected to hive ?
相关问题
- slurm: use a control node also for computing
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- How to reimport module with ES6 import
- Why is `node.js` dying when called from inside pyt
相关文章
- node连接远程oracle报错
- 在hive sql里怎么把"2020-10-26T08:41:19.000Z"这个字符串转换成年月日
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
As node node-thrift-hive and node-hive both module are abandoned, not commit still 4 to 5 year old, I have same issue and I am using Node 0.12 and below is my solutions.
Step -1: You have to setup Hiveserver2 , my hive version is 1.2 and hadoop version 2.7
https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2
If you don't want to follow Step-1 then upgrade your node js to 4.5 > and use jshs2 npm
In my case I don't want to upgrade my node version so I try to connect via JDBC drivers JDBC npm
Step-2: Use Below code to connect hive and fetch the data