我正在寻找这个问题的解决方案(org.apache.hive.service.cli.thrift.tcliservice$iface),同时将talend open studio与hive连接起来

63lcw9qa  于 2021-06-26  发布在  Hive
关注(0)|答案(2)|浏览(1378)

我在连接talend open studio和hive时遇到了这个问题。错误如下:
线程“main”java.lang.noclassdeffounderror中出现异常:org/apache/hive/service/cli/thrift/tcliservice$iface at org.apache.hive.jdbc.hivedriver.connect(hivedriver)。java:105)在java.sql.drivermanager.getconnection(drivermanager。java:664)在java.sql.drivermanager.getconnection(drivermanager。java:247)在mtn\u project.hive\u test\u 0\u 1.hive\u test.thiveconnection\u 1进程(hive\u test)。java:353)在mtn\u project.hive\u test\u 0\u 1.hive\u test.runjobintos(hive\u test。java:674)在mtn\u project.hive\u test\u 0\u 1.hive\u test.main(hive\u test)。java:523)原因:java.lang.classnotfoundexception:org.apache.hive.service.cli.thrift.tcliservice$iface atjava.net.urlclassloader.findclass(urlclassloader。java:381)在java.lang.classloader.loadclass(classloader。java:424)在sun.misc.launcher$appclassloader.loadclass(launcher。java:331)[统计]在java.lang.classloader.loadclass(classloader。java:357) ... 6个以上

0dxa2lsx

0dxa2lsx1#

我有同样的错误信息,使用下面的jar帮助了我。它们位于$spark\u home/jars文件夹中:

commons-logging-1.1.3.jar  
hadoop-common-3.0.0.jar     
hive-jdbc-1.2.1.spark2.jar  
hive-metastore-1.2.1.spark2.jar  
httpclient-4.5.2.jar  
libthrift-0.9.3.jar
guava-14.0.1.jar           
hive-exec-1.2.1.spark2.jar  
hive-service-1.2.2.jar           
httpcore-4.4.4.jar
hmtdttj4

hmtdttj42#

NoClassDefFoundError 通常表示环境中缺少某些库。
参见示例connect hive thorugh javajdbc
在您的情况下,您可能需要大数据版本。

相关问题