Fix missing jackson jars for hadoop ingestion#8652
Conversation
| <dependency> | ||
| <groupId>org.codehaus.jackson</groupId> | ||
| <artifactId>jackson-jaxrs</artifactId> | ||
| <version>1.9.13</version> |
There was a problem hiding this comment.
Please specify versions using dependencyManagement in the central pom. (It makes sure we use the same version everywhere)
There was a problem hiding this comment.
Added codehaus.jackson.version in the central pom
| <artifactId>hadoop-hdfs-client</artifactId> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
| <dependency> |
There was a problem hiding this comment.
Please include a comment about why these are necessary (they aren't directly used, nor are they pulled in transitively [apparently], which makes them mysterious and in need of a comment).
There was a problem hiding this comment.
If the dependency analyze check complains, you can change the scope to runtime for these.
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>jackson-databind</artifactId> | ||
| </dependency> | ||
| <dependency> |
gianm
left a comment
There was a problem hiding this comment.
I like this new approach, assuming it works.
| </exclusion> | ||
| <exclusion> | ||
| <groupId>org.codehaus.jackson</groupId> | ||
| <artifactId>jackson-mapper-asl</artifactId> |
There was a problem hiding this comment.
I think you'll need this one too.
|
Updated this to use a more targeted approach the removes the |
* Fix missing jackson jars for hadoop ingestion * PR comments * pom ordering * New approach * Remove all jackson-core/mapper-asl exclusions from hdfs storage
This PR adds the following jars back to druid-hdfs-storage (pruned in #8230) due to observing issues with hadoop ingestion when they're missing:
It also adds an explicit dependency on
jackson-core-asl-1.9.13toindexing-hadoop, this is currently being brought in through the Curator 4.1.0 dependency, but it's needed when using Hadoop/HDFS. Later versions of Curator such as 4.2.0 no longer bring in this dependency, so we shouldn't rely on Curator for that.This PR has: