[ https://issues.apache.org/jira/browse/HIVE-22807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17027514#comment-17027514 ]
David Lavati commented on HIVE-22807: ------------------------------------- Hi [~eilmrein], haddop 3.2.1 has [guava 27|https://github.com/apache/hadoop/blob/rel/release-3.2.1/hadoop-project/pom.xml#L95], while hive due to other dependencies is currently on 19. You'd have to shade usage of one away if you want to use these versions together, however this can prove to be a complex task. > NoSuchMethodError when running hive or schematool > ------------------------------------------------- > > Key: HIVE-22807 > URL: https://issues.apache.org/jira/browse/HIVE-22807 > Project: Hive > Issue Type: Bug > Affects Versions: 3.1.2 > Environment: jdk1.8.0_241 > hadoop 3.2.1 > Reporter: Reinhard Eilmsteiner > Priority: Major > > After execution of the steps described in > [https://cwiki.apache.org/confluence/display/Hive/GettingStarted?show-miniview > > |https://cwiki.apache.org/confluence/display/Hive/GettingStarted?show-miniview]I > run into the following exception when executing hive and schematool: > Exception in thread "main" java.lang.NoSuchMethodError: > com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V > at org.apache.hadoop.conf.Configuration.set(Configuration.java:1357) > at org.apache.hadoop.conf.Configuration.set(Configuration.java:1338) > at org.apache.hadoop.mapred.JobConf.setJar(JobConf.java:536) > at org.apache.hadoop.mapred.JobConf.setJarByClass(JobConf.java:554) > at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:448) > at org.apache.hadoop.hive.conf.HiveConf.initialize(HiveConf.java:5141) > at org.apache.hadoop.hive.conf.HiveConf.<init>(HiveConf.java:5104) > at org.apache.hive.beeline.HiveSchemaTool.<init>(HiveSchemaTool.java:96) > at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1473) > 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:323) > at org.apache.hadoop.util.RunJar.main(RunJar.java:236) -- This message was sent by Atlassian Jira (v8.3.4#803005)