From 83c25ca3bd4d1dea216b85e17a7e86b43c4c6bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wo=C5=BAniak?= Date: Thu, 23 Aug 2018 00:50:06 +0200 Subject: [PATCH] Fix running Overlord inside Coordinator (#6195) --- services/src/main/java/io/druid/cli/CliOverlord.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/src/main/java/io/druid/cli/CliOverlord.java b/services/src/main/java/io/druid/cli/CliOverlord.java index f7b7640c981..5b61e2275d8 100644 --- a/services/src/main/java/io/druid/cli/CliOverlord.java +++ b/services/src/main/java/io/druid/cli/CliOverlord.java @@ -34,6 +34,7 @@ import com.google.inject.servlet.GuiceFilter; import com.google.inject.util.Providers; import io.airlift.airline.Command; import io.druid.audit.AuditManager; +import io.druid.client.indexing.HttpIndexingServiceClient; import io.druid.client.indexing.IndexingService; import io.druid.client.indexing.IndexingServiceClient; import io.druid.client.indexing.IndexingServiceSelectorConfig; @@ -188,7 +189,7 @@ public class CliOverlord extends ServerRunnable binder.bind(IndexerMetadataStorageAdapter.class).in(LazySingleton.class); binder.bind(SupervisorManager.class).in(LazySingleton.class); - binder.bind(IndexingServiceClient.class).toProvider(Providers.of(null)); + binder.bind(IndexingServiceClient.class).to(HttpIndexingServiceClient.class).in(LazySingleton.class); binder.bind(new TypeLiteral>(){}) .toProvider(Providers.of(null)); binder.bind(ChatHandlerProvider.class).toProvider(Providers.of(null));