Fix running Overlord inside Coordinator (#6195)

This commit is contained in:
Karol Woźniak 2018-08-23 00:50:06 +02:00 committed by Gian Merlino
parent 9c500fb69f
commit 83c25ca3bd
1 changed files with 2 additions and 1 deletions

View File

@ -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<IndexTaskClientFactory<ParallelIndexTaskClient>>(){})
.toProvider(Providers.of(null));
binder.bind(ChatHandlerProvider.class).toProvider(Providers.of(null));