druid-io / tranquility

Tranquility helps you send real-time event streams to Druid and handles partitioning, replication, service discovery, and schema rollover, seamlessly and without downtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing dependencies causing com.metamx.common.parsers.JSONPathParser class not found error

dyanarose opened this issue · comments

This has been reported in a few places, but I don't believe that a specific issue has been raised.
see this thread: https://groups.google.com/forum/#!topic/druid-user/5afMWd17sbU and the associated maven solution to add:

<!-- https://mvnrepository.com/artifact/com.metamx/java-util -->
<dependency>
    <groupId>com.metamx</groupId>
    <artifactId>java-util</artifactId>
    <version>0.27.9</version>
</dependency>
<!-- https://mvnrepository.com/artifact/joda-time/joda-time -->
<dependency>
    <groupId>joda-time</groupId>
    <artifactId>joda-time</artifactId>
    <version>2.9.4</version>
</dependency>

and #184 (comment) with the associated sbt solution to add:
"com.metamx" % "java-util" % "0.27.9",

The calling application shouldn't have to add these dependencies directly. They should be included in the tranquility dependency

Hi, after adding these dependencies, I got another error:

Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.module.scala.deser.BigDecimalDeserializer$.handledType()Ljava/lang/Class;

by adding the jackson dependency, it finally works.....

   <dependency>
      <groupId>com.fasterxml.jackson.module</groupId>
      <artifactId>jackson-module-scala_2.11</artifactId>
      <version>2.9.2</version>
    </dependency>