Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 05-23-2016 10:59 AM
Can we connect hive or hdfs through node js. Can you provide any idea?
Created 05-23-2016 11:18 AM
Hi @Raj sharma.
Have you tried looking at jshs2?
https://www.npmjs.com/package/jshs2
Alternatively for Hive you can also use the REST API to make queries https://cwiki.apache.org/confluence/display/Hive/HiveWebInterface
Finally for HDFS you can use the REST API for HDFS
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html
Created 05-23-2016 11:18 AM
Hi @Raj sharma.
Have you tried looking at jshs2?
https://www.npmjs.com/package/jshs2
Alternatively for Hive you can also use the REST API to make queries https://cwiki.apache.org/confluence/display/Hive/HiveWebInterface
Finally for HDFS you can use the REST API for HDFS
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html
Created 05-23-2016 01:17 PM
I have referred : https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html
I tried to access through http. It's throwing exception like :
"RemoteException": {"exception": "UnsupportedOperationException","javaClassName": "java.lang.UnsupportedOperationException","message": "op=NULL is not supported"
Created 02-23-2020 05:20 AM
Hi, @raj-kumar-sharm ! You may try hive-driver, it uses HiveServer2 API via thrift and it doesn't require to install Java. It supports different kinds of authorization and both binary and http modes. You can find some examples in the repository Also, if you have any questions, feel free to create an issue
Created 02-09-2021 01:02 PM
I used the hive-driver to access Kerberos enabled Hive running on HDP (HortonWorks Data Platform, now CDP). It worked well. The sample code and the Hive docker instance helped to get it tested before trying on corporate instance.