Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am looking for a solution on the issue(org.apache.hive.service.cli.thrift.TCLIService$Iface) while connecting talend open studio with hive

Tags:

hive

talend

i am facing this issue while connecting talend open studio with hive. Below is the error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hive/service/cli/thrift/TCLIService$Iface at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at mtn_project.hive_test_0_1.hive_test.tHiveConnection_1Process(hive_test.java:353) at mtn_project.hive_test_0_1.hive_test.runJobInTOS(hive_test.java:674) at mtn_project.hive_test_0_1.hive_test.main(hive_test.java:523) Caused by: java.lang.ClassNotFoundException: org.apache.hive.service.cli.thrift.TCLIService$Iface at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) [statistics] disconnected at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more

like image 607
Gyanendu Avatar asked Oct 20 '25 12:10

Gyanendu


1 Answers

NoClassDefFoundError usually indicates that certain libraries in your environment are missing.

See for example Connect Hive thorugh Java JDBC

In your case it might be a possibility that you need the Big Data edition.

like image 143
tobi6 Avatar answered Oct 23 '25 06:10

tobi6