Nishant Bangarwa created HIVE-16752:
---------------------------------------
Summary: Enable Unit test - TestDruidRecordWriter.testWrite
Key: HIVE-16752
URL: https://issues.apache.org/jira/browse/HIVE-16752
Project: Hive
Issue Type: Bug
Components: Druid integration
Reporter: Nishant Bangarwa
After the changes done in https://issues.apache.org/jira/browse/HIVE-16474 the
test is failing due to loading of guava classes from hive-exec jar.
this is because the hive-exec jar is a shaded jar which contains all the
dependencies.
For details see - https://github.com/apache/hive/blob/master/ql/pom.xml#L820
"The way shade was configured since 0.13, is to override the default jar for ql
module with the shaded one but keep the same name."
So when mvn resolves the jar when running the unit test, it sees the shaded jar
which has guava also.
To resolve this, there are two ways i could find -
1) Tweak the order of dependencies in druid
2) Somehow add a dependency in druid-handler for non-shaded jar, but since it
has been already overridden, not sure how to do it.
3) Use a different namespace for guava classes in hive-exec jar.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)