You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/05/14 07:19:46 UTC
[GitHub] [incubator-hudi] arw357 opened a new issue #681: spark-bundle
packaging shades HiveDriver
arw357 opened a new issue #681: spark-bundle packaging shades HiveDriver
URL: https://github.com/apache/incubator-hudi/issues/681
In the pom that creates the spark-bundle you shade org.apache.hive : [Here](https://github.com/apache/incubator-hudi/blob/master/packaging/hoodie-spark-bundle/pom.xml#L124)
In the HoodieHiveClient you use it unshaded:[here](https://github.com/apache/incubator-hudi/blob/master/hoodie-hive/src/main/java/com/uber/hoodie/hive/HoodieHiveClient.java#L59)
This leads to
```
java.lang.NoClassDefFoundError: org/apache/hive/jdbc/HiveDriver
at com.uber.hoodie.hive.HoodieHiveClient.<clinit>(HoodieHiveClient.java:73)
at com.uber.hoodie.hive.HiveSyncTool.<init>(HiveSyncTool.java:61)
at com.uber.hoodie.HoodieSparkSqlWriter$.syncHive(HoodieSparkSqlWriter.scala:238)
at com.uber.hoodie.HoodieSparkSqlWriter$.write(HoodieSparkSqlWriter.scala:172)
at com.uber.hoodie.DefaultSource.createRelation(DefaultSource.scala:91)
```
----------------------------------------------------------------
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