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

Outdated MetastoreSchemaTool class reference in schemaTool.sh

    XMLWordPrintableJSON

Details

    Description

      In HIVE-21298 MetastoreSchemaTool was moved from org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool to org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool, but it seems like schemaTool.sh was not updated.

       

      This results in the following error being raised when invoking the shell script:

      /stackable/apache-hive-metastore-4.0.0-bin $ bin/base --service schemaTool
      Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool
      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:398)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:321)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:241)

      Attachments

        Issue Links

          Activity

            People

              sbernauer Sebastian Bernauer
              sbernauer Sebastian Bernauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: