Windows3 Hive 启动Hive客户端,提示如下错误信息:
java.lang.NoSuchMethodError: com.lmax.disruptor.dsl.Disruptor.<init>(Lcom/lmax/disruptor/EventFactory;ILjava/util/concurrent/ThreadFactory;Lcom/lmax/disruptor/dsl/ProducerType;Lcom/lmax/disruptor/WaitStrategy;)V
造成的原因是:Hadoop3.x 与Hive.3.x 的disruptor 版本冲突
解决办法:将Hadoop3.x 与Hive.3.x 的disruptor 版本提升至最高版本。
%HADOOP_HOME%\share\hadoop\yarn\lib目錄下的disruptor包的版本替換為disruptor-3.4.2.jar
%Hive_HOME%\lib目錄下的disruptor包的版本替換為disruptor-3.4.2.jar


本文解决了一个关于Windows3Hive启动Hive客户端时出现的错误信息问题,该问题源于Hadoop3.x与Hive3.x的disruptor版本冲突。通过将两个软件的disruptor版本统一提升至3.4.2,成功解决了这一冲突。

被折叠的 条评论
为什么被折叠?



