Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22718

Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2
    • Fix Version/s: None
    • Component/s: Hive
    • Labels:
      None

      Description

      Hadoop version 3.1.3

      when execute:
      schematool -dbType mysql -initSchema

      then error:

      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:518)
      at org.apache.hadoop.mapred.JobConf.setJarByClass(JobConf.java:536)
      at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:430)
      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:318)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:232)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zhangtianlong ZHangTianLong
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: