Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Can we connect hive or hdfs through node js. Can you provide any idea?

avatar
New Contributor

Can we connect hive or hdfs through node js. Can you provide any idea?

1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
4 REPLIES 4

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
New Contributor

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"

hive-error.png

avatar
New Contributor

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

avatar
New Contributor

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.