Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-630

Fix orc-tools uber jar by adding guava dependency back

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: tools
    • Labels:
      None

      Description

      After ORC-599 (Bumping up guava to 28.1-jre), `orc-tools` uber jar fails due to `ClassNotFoundException`. This issue aims to add it back to `orc-tools`.

      $ mvn package -DskipTests
      $ java -jar tools/target/orc-tools-1.7.0-SNAPSHOT-uber.jar meta /tmp/o
      Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
      	at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:328)
      	at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:341)
      	at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:423)
      	at org.apache.orc.tools.Driver.main(Driver.java:100)
      Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
      	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
      	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: