[ 
https://issues.apache.org/jira/browse/HIVE-22394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jesus Camacho Rodriguez updated HIVE-22394:
-------------------------------------------
    Fix Version/s: 4.0.0

> Duplicate Jars in druid classpath causing issues
> ------------------------------------------------
>
>                 Key: HIVE-22394
>                 URL: https://issues.apache.org/jira/browse/HIVE-22394
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Nishant Bangarwa
>            Assignee: Nishant Bangarwa
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-22394.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> hive-druid-handler jar has shaded version of druid classes, 
> druid-hdfs-storage also has non-shaded classes. 
> {code} 
> [hive@hiveserver2-1 lib]$ ls |grep druid
> calcite-druid-1.19.0.7.0.2.0-163.jar
> druid-bloom-filter-0.15.1.7.0.2.0-163.jar
> druid-hdfs-storage-0.15.1.7.0.2.0-163.jar
> hive-druid-handler-3.1.2000.7.0.2.0-163.jar
> hive-druid-handler.jar
> {code}
> Exception below - 
> {code}
> Caused by: java.util.concurrent.ExecutionException: 
> java.lang.RuntimeException: java.lang.RuntimeException: 
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.fs.HadoopFsWrapper
>   at 
> org.apache.hive.druid.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
>   at 
> org.apache.hive.druid.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
>   at 
> org.apache.hive.druid.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
>   at 
> org.apache.hadoop.hive.druid.io.DruidRecordWriter.pushSegments(DruidRecordWriter.java:177)
>   ... 22 more
> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: 
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.fs.HadoopFsWrapper
>   at 
> org.apache.hive.druid.org.apache.druid.segment.realtime.appenderator.AppenderatorImpl.mergeAndPush(AppenderatorImpl.java:765)
>   at 
> org.apache.hive.druid.org.apache.druid.segment.realtime.appenderator.AppenderatorImpl.lambda$push$1(AppenderatorImpl.java:630)
>   at 
> org.apache.hive.druid.com.google.common.util.concurrent.Futures$1.apply(Futures.java:713)
>   at 
> org.apache.hive.druid.com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:861)
>   ... 3 more
> Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could 
> not initialize class org.apache.hadoop.fs.HadoopFsWrapper
>   at 
> org.apache.hive.druid.org.apache.druid.java.util.common.RetryUtils.retry(RetryUtils.java:96)
>   at 
> org.apache.hive.druid.org.apache.druid.java.util.common.RetryUtils.retry(RetryUtils.java:114)
>   at 
> org.apache.hive.druid.org.apache.druid.java.util.common.RetryUtils.retry(RetryUtils.java:104)
>   at 
> org.apache.hive.druid.org.apache.druid.segment.realtime.appenderator.AppenderatorImpl.mergeAndPush(AppenderatorImpl.java:743)
>   ... 6 more
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.fs.HadoopFsWrapper
>   at 
> org.apache.hive.druid.org.apache.druid.storage.hdfs.HdfsDataSegmentPusher.copyFilesWithChecks(HdfsDataSegmentPusher.java:163)
>   at 
> org.apache.hive.druid.org.apache.druid.storage.hdfs.HdfsDataSegmentPusher.push(HdfsDataSegmentPusher.java:145)
>   at 
> org.apache.hive.druid.org.apache.druid.segment.realtime.appenderator.AppenderatorImpl.lambda$mergeAndPush$4(AppenderatorImpl.java:747)
>   at 
> org.apache.hive.druid.org.apache.druid.java.util.common.RetryUtils.retry(RetryUtils.java:86)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to