Hive 3 提示:java.lang.NoSuchMethodError: com.lmax.disruptor.dsl.Disruptor.「init」

Windows3 Hive 启动Hive客户端,提示如下错误信息:

java.lang.NoSuchMethodError: com.lmax.disruptor.dsl.Disruptor.(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

你可能感兴趣的:(hadoop)