Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution
Highlighted

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

New Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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

Hope that helps!

View solution in original post

3 REPLIES 3
Highlighted

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

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

Hope that helps!

View solution in original post

Highlighted

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

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

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

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

Don't have an account?
Coming from Hortonworks? Activate your account here