mirror of https://github.com/apache/druid.git
fix more startup problems
This commit is contained in:
parent
69a0e0e1a7
commit
e5f46f2a66
|
@ -43,9 +43,7 @@ import com.metamx.druid.merger.common.config.IndexerZkConfig;
|
||||||
import com.metamx.druid.merger.common.config.TaskConfig;
|
import com.metamx.druid.merger.common.config.TaskConfig;
|
||||||
import com.metamx.druid.merger.common.index.StaticS3FirehoseFactory;
|
import com.metamx.druid.merger.common.index.StaticS3FirehoseFactory;
|
||||||
import com.metamx.druid.merger.coordinator.ForkingTaskRunner;
|
import com.metamx.druid.merger.coordinator.ForkingTaskRunner;
|
||||||
import com.metamx.druid.merger.coordinator.TaskStorageQueryAdapter;
|
|
||||||
import com.metamx.druid.merger.coordinator.config.ForkingTaskRunnerConfig;
|
import com.metamx.druid.merger.coordinator.config.ForkingTaskRunnerConfig;
|
||||||
import com.metamx.druid.merger.coordinator.http.IndexerCoordinatorServletModule;
|
|
||||||
import com.metamx.druid.merger.worker.Worker;
|
import com.metamx.druid.merger.worker.Worker;
|
||||||
import com.metamx.druid.merger.worker.WorkerCuratorCoordinator;
|
import com.metamx.druid.merger.worker.WorkerCuratorCoordinator;
|
||||||
import com.metamx.druid.merger.worker.WorkerTaskMonitor;
|
import com.metamx.druid.merger.worker.WorkerTaskMonitor;
|
||||||
|
|
|
@ -3,7 +3,7 @@ package com.metamx.druid.merger.worker.http;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.metamx.common.logger.Logger;
|
import com.metamx.common.logger.Logger;
|
||||||
import com.metamx.druid.merger.coordinator.TaskRunner;
|
import com.metamx.druid.merger.coordinator.ForkingTaskRunner;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import javax.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import javax.ws.rs.POST;
|
||||||
|
@ -19,12 +19,12 @@ public class WorkerResource
|
||||||
private static final Logger log = new Logger(WorkerResource.class);
|
private static final Logger log = new Logger(WorkerResource.class);
|
||||||
|
|
||||||
private final ObjectMapper jsonMapper;
|
private final ObjectMapper jsonMapper;
|
||||||
private final TaskRunner taskRunner;
|
private final ForkingTaskRunner taskRunner;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public WorkerResource(
|
public WorkerResource(
|
||||||
ObjectMapper jsonMapper,
|
ObjectMapper jsonMapper,
|
||||||
TaskRunner taskRunner
|
ForkingTaskRunner taskRunner
|
||||||
|
|
||||||
) throws Exception
|
) throws Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class WorkerServletModule extends JerseyServletModule
|
||||||
@Override
|
@Override
|
||||||
protected void configureServlets()
|
protected void configureServlets()
|
||||||
{
|
{
|
||||||
bind(IndexerCoordinatorResource.class);
|
bind(WorkerResource.class);
|
||||||
bind(ObjectMapper.class).toInstance(jsonMapper);
|
bind(ObjectMapper.class).toInstance(jsonMapper);
|
||||||
bind(ServiceEmitter.class).toInstance(emitter);
|
bind(ServiceEmitter.class).toInstance(emitter);
|
||||||
bind(ForkingTaskRunner.class).toInstance(forkingTaskRunner);
|
bind(ForkingTaskRunner.class).toInstance(forkingTaskRunner);
|
||||||
|
|
Loading…
Reference in New Issue