Support Questions
Find answers, ask questions, and share your expertise

How I can connect Spark Thrift Server with NodeJS ?

New Contributor

Server is running on localhost:3000 { [Error: Error running static method java.lang.NoClassDefFoundError: org/apache/thrift/transport/TTransportException at org.apache.hive.jdbc.HiveDriver.connect( at java.sql.DriverManager.getConnection( at java.sql.DriverManager.getConnection( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( Caused by: java.lang.ClassNotFoundException: org.apache.thrift.transport.TTransportException at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 7 more ] cause: nodeJava_java_lang_NoClassDefFoundError {} }


New Contributor

Hi @atifmerghad ! Can you provide the code of how you connect to the Hive? Have you chance to try hive-driver for connection?


Also, you may look at the hive log, usually, it stores at /tmp/<username>/hive.log


; ;