Are tranquility-distribution-0.7.4 compitiable with druid 0.9.0 in extension mechanism?

74 views
Skip to first unread message

hui li

unread,
May 7, 2016, 5:55:47 AM5/7/16
to Druid User
i try to use  thetaSketch in tranquility  for data ingestion.
  put extension properties everywhere i can imagine,like in tranquility  script:

  addJava '-Ddruid.extensions.loadList=["druid-datasketches"]'
  addJava  "-Ddruid.extensions.directory=/home/lihui/druid-0.9.0/extensions"

command line,and server.json

it does not work, always throw exception:

java.lang.IllegalArgumentException: Could not resolve type id 'thetaSketch' into a subtype of [simple type, class io.druid.query.aggregation.AggregatorFactory]
 at [Source: N/A; line: -1, column: -1] (through reference chain: Object[][1])
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:2774)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:2700)


when i modified classpath to include jars of  druid-datasketches in tranquility  script,it throws exceptions as follow:

java.lang.IncompatibleClassChangeError: class io.druid.query.aggregation.datasketches.theta.SketchAggregatorFactory has interface io.druid.query.aggregation.AggregatorFactory as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)








Gian Merlino

unread,
May 9, 2016, 12:27:25 AM5/9/16
to druid...@googlegroups.com
Tranquility 0.7.4 is built against Druid 0.8.2 so it needs to use Druid 0.8.2 extensions.

Tranquility 0.8.0 (upcoming, should be released this week) will be built against Druid 0.9.0 and can use Druid 0.9.0 extensions.

Gian

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/b44c6076-0c4b-44fc-84dd-b9c32c5d35cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hui li

unread,
May 9, 2016, 12:57:44 AM5/9/16
to Druid User
thanks. I have build a snapshot version, and it works.

在 2016年5月9日星期一 UTC+8下午12:27:25,Gian Merlino写道:

Fangjin

unread,
May 10, 2016, 12:11:39 PM5/10/16
to Druid User
Just as an update, Tranquility 0.8.0 was just released to fully work with Druid 0.9.x.

Reply all
Reply to author
Forward
0 new messages