Druid upgrade from 9.2 to 11.0 exception

Hi,
We are trying to upgrade Druid from 9.2 to 11.0 and getting exceptions in historical logs.

2018-02-12T19:27:14,755Z ERROR [main] io.druid.cli.CliHistorical - Error when starting up. Failing.

com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. druid.announcer. – Injected field[batchAnnouncer] not bound!? - may not be null

at io.druid.guice.JsonConfigProvider.bind(JsonConfigProvider.java:133) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.guice.AnnouncerModule)

at io.druid.guice.JsonConfigProvider.bind(JsonConfigProvider.java:133) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.guice.AnnouncerModule)

while locating com.google.common.base.Supplier<io.druid.server.coordination.DataSegmentAnnouncerProvider>

at io.druid.guice.JsonConfigProvider.bind(JsonConfigProvider.java:134) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.guice.AnnouncerModule)

while locating io.druid.server.coordination.DataSegmentAnnouncerProvider

while locating io.druid.server.coordination.DataSegmentAnnouncer

for the 5th parameter of io.druid.server.coordination.ZkCoordinator.<init>(ZkCoordinator.java:97)

at io.druid.cli.CliHistorical$1.configure(CliHistorical.java:95) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.cli.CliHistorical$1)

while locating io.druid.server.coordination.ZkCoordinator

All configurations are changed based on latest instructions. Anything obvious I’m missing here? Any pointers will be helpful.

Thanks,

-Raghav

Hi Raghav,

Have you mixed 0.9.2 jars with 0.11.0 jars? Nothing in Druid 0.11.0 has an injected field named “batchAnnouncer”.

Hi Gian,
I checked installed jars and everything is pointing to 11.0

[user@druid ~]$ ls -rlat /user/druid/druid-historical/lib/druid*

-rw-r–r-- 1 druid druid 621412 Apr 4 2017 /user/druid/druid-historical/lib/druid-console-0.0.2.jar

-rw-r–r-- 1 druid druid 26691 Feb 7 10:08 /user/druid/druid-historical/lib/druid-stats-0.11.0.jar

-rw-r–r-- 1 druid druid 128840 Feb 7 10:08 /user/druid/druid-historical/lib/druid-services-0.11.0.jar

-rw-r–r-- 1 druid druid 1647753 Feb 7 10:08 /user/druid/druid-historical/lib/druid-server-0.11.0.jar

-rw-r–r-- 1 druid druid 9757 Feb 7 10:08 /user/druid/druid-historical/lib/druid-parquet-extensions-0.11.0.jar

-rw-r–r-- 1 druid druid 498892 Feb 7 10:08 /user/druid/druid-historical/lib/druid-indexing-service-0.11.0.jar

-rw-r–r-- 1 druid druid 214843 Feb 7 10:08 /user/druid/druid-historical/lib/druid-indexing-hadoop-0.11.0.jar

-rw-r–r-- 1 druid druid 2061173 Feb 7 10:08 /user/druid/druid-historical/lib/druid-processing-0.11.0.jar

-rw-r–r-- 1 druid druid 8683 Feb 7 10:08 /user/druid/druid-historical/lib/druid-aws-common-0.11.0.jar

-rw-r–r-- 1 druid druid 291725 Feb 7 10:08 /user/druid/druid-historical/lib/druid-sql-0.11.0.jar

-rw-r–r-- 1 druid druid 15031 Feb 7 10:08 /user/druid/druid-historical/lib/druid-hll-0.11.0.jar

-rw-r–r-- 1 druid druid 241661 Feb 7 10:08 /user/druid/druid-historical/lib/druid-common-0.11.0.jar

-rw-r–r-- 1 druid druid 133791 Feb 7 10:08 /user/druid/druid-historical/lib/druid-api-0.11.0.jar

Pinging on this thread. any pointers will be super helpful.

-Raghav

Hi Raghav,

If I was you I would try reproducing this on a small test setup (like the quickstart). See if any of the properties you have in common.runtime.properties or historical runtime.properties are perhaps causing this. Or maybe some extensions you have installed.