mirror of https://github.com/apache/druid.git
add correct guice init of TaskStorageConfig to CliPeon
This commit is contained in:
parent
23545fc01c
commit
4a8f5dfa0f
|
@ -48,6 +48,7 @@ import io.druid.indexing.common.actions.RemoteTaskActionClientFactory;
|
|||
import io.druid.indexing.common.actions.TaskActionClientFactory;
|
||||
import io.druid.indexing.common.actions.TaskActionToolbox;
|
||||
import io.druid.indexing.common.config.TaskConfig;
|
||||
import io.druid.indexing.common.config.TaskStorageConfig;
|
||||
import io.druid.indexing.overlord.HeapMemoryTaskStorage;
|
||||
import io.druid.indexing.overlord.IndexerMetadataStorageCoordinator;
|
||||
import io.druid.indexing.overlord.TaskRunner;
|
||||
|
@ -186,6 +187,7 @@ public class CliPeon extends GuiceRunnable
|
|||
taskActionBinder.addBinding("local")
|
||||
.to(LocalTaskActionClientFactory.class).in(LazySingleton.class);
|
||||
// all of these bindings are so that we can run the peon in local mode
|
||||
JsonConfigProvider.bind(binder, "druid.indexer.storage", TaskStorageConfig.class);
|
||||
binder.bind(TaskStorage.class).to(HeapMemoryTaskStorage.class).in(LazySingleton.class);
|
||||
binder.bind(TaskActionToolbox.class).in(LazySingleton.class);
|
||||
binder.bind(IndexerMetadataStorageCoordinator.class).to(IndexerSQLMetadataStorageCoordinator.class).in(LazySingleton.class);
|
||||
|
|
Loading…
Reference in New Issue