You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/07/06 15:42:41 UTC

[GitHub] [incubator-iceberg] rdsr opened a new issue #260: iceberg-spark-runtime should not shade Hive classes it does not include in its shaded jar

rdsr opened a new issue #260: iceberg-spark-runtime should not shade Hive classes it does not include in its shaded jar
URL: https://github.com/apache/incubator-iceberg/issues/260
 
 
   I see the following exception when using spark-runtime jar. 
   ```
   Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/iceberg/shaded/org/apache/hadoop/hive/metastore/api/NoSuchObjectException
   	at HiveTables$.<init>(HiveTables.scala:9)
   	at HiveTables$.<clinit>(HiveTables.scala)
   	at HiveTables.main(HiveTables.scala)
   Caused by: java.lang.ClassNotFoundException: org.apache.iceberg.shaded.org.apache.hadoop.hive.metastore.api.NoSuchObjectException
   	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
   	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   	... 3 more
   
   ```
   
   It seems that we are shading Metastore classes even though we are not bundling them in the shaded jar. 
   
   I have a patch working for this which I'll post later in the day.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org