码迷,mamicode.com
首页 > 其他好文 > 详细

HiveServer2启动报TezConfiguration,NoClassDefFoundError错误

时间:2021-01-06 12:28:56      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:问题   UNC   service   pcl   org   没有   conf   site   rtp   

错误信息如下:

2021-01-03 20:11:26,355 WARN  [main] server.HiveServer2: Error starting HiveServer2 on attempt 1, will retry in 60000ms
java.lang.NoClassDefFoundError: org/apache/tez/dag/api/TezConfiguration
	at org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolSession$AbstractTriggerValidator.startTriggerValidator(TezSessionPoolSession.java:74)
	at org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager.initTriggers(TezSessionPoolManager.java:207)
	at org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager.startPool(TezSessionPoolManager.java:114)
	at org.apache.hive.service.server.HiveServer2.initAndStartTezSessionPoolManager(HiveServer2.java:839)
	at org.apache.hive.service.server.HiveServer2.startOrReconnectTezSessions(HiveServer2.java:822)
	at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:745)
	at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:1037)
	at org.apache.hive.service.server.HiveServer2.access$1600(HiveServer2.java:140)
	at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:1305)
	at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:1149)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
Caused by: java.lang.ClassNotFoundException: org.apache.tez.dag.api.TezConfiguration
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 16 more

 

虽然只是个Warn,但是这老长一段错,强迫症看不下去啊!

看起来像是缺少jar包,不过往上翻发现了一段很有意思的话:

2021-01-03 20:11:26,328 INFO  [main] server.HiveServer2: HS2 interactive HA not enabled. Starting tez sessions..

 

对啊,我本来就没打算整合Tes的啊,于是搜索这句话发现,hive-site.xml添加以下配置可以解决:

<!-- hiveserver2的高可用参数,开启此参数可以提高hiveserver2的启动速度 -->

<property>
    <name>hive.server2.active.passive.ha.enable</name>
    <value>true</value>
</property>

 

再次启动HiveServer2,问题解决,但是为啥呢?到hive官网去没有找到这个配置项。Mark以下吧,日后再说。

 

HiveServer2启动报TezConfiguration,NoClassDefFoundError错误

标签:问题   UNC   service   pcl   org   没有   conf   site   rtp   

原文地址:https://www.cnblogs.com/zhuisuidefeng/p/14226883.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!