lamber-ken commented on issue #1499: [SUPPORT] DeltaStreamer - 
NoClassDefFoundError for HiveDriver
URL: https://github.com/apache/incubator-hudi/issues/1499#issuecomment-611114936
 
 
   hi @hikiyoung, there are two ways to solve your problem
   
   1. Keep hudi-0.5.0 version
   
   ```
   1. checkout 0.5.0 branch
   https://github.com/apache/incubator-hudi/tree/release-0.5.0
   
   2. remove these code 
   
https://github.com/apache/incubator-hudi/blob/release-0.5.0/packaging/hudi-spark-bundle/pom.xml
   
   <relocation>
     <pattern>org.apache.hive.jdbc.</pattern>
     <shadedPattern>org.apache.hudi.org.apache.hive.jdbc.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hadoop.hive.metastore.</pattern>
     
<shadedPattern>org.apache.hudi.org.apache.hadoop_hive.metastore.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hive.common.</pattern>
     <shadedPattern>org.apache.hudi.org.apache.hive.common.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hadoop.hive.common.</pattern>
     
<shadedPattern>org.apache.hudi.org.apache.hadoop_hive.common.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hadoop.hive.conf.</pattern>
     <shadedPattern>org.apache.hudi.org.apache.hadoop_hive.conf.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hive.service.</pattern>
     <shadedPattern>org.apache.hudi.org.apache.hive.service.</shadedPattern>
   </relocation>
   <relocation>
     <pattern>org.apache.hadoop.hive.service.</pattern>
     
<shadedPattern>org.apache.hudi.org.apache.hadoop_hive.service.</shadedPattern>
   </relocation>
   
   3. compile hudi package
   ```
   
   2. Upgrade hudi to 0.5.2 version

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to