Search in sources :

Example 1 with LocalIntermediaryDataManager

use of org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager in project druid by druid-io.

the class AbstractParallelIndexSupervisorTaskTest method setUpAbstractParallelIndexSupervisorTaskTest.

@Before
public void setUpAbstractParallelIndexSupervisorTaskTest() throws IOException {
    localDeepStorage = temporaryFolder.newFolder("localStorage");
    taskRunner = new SimpleThreadingTaskRunner();
    objectMapper = getObjectMapper();
    indexingServiceClient = new LocalIndexingServiceClient(objectMapper, taskRunner);
    intermediaryDataManager = new LocalIntermediaryDataManager(new WorkerConfig(), new TaskConfig(null, null, null, null, null, false, null, null, ImmutableList.of(new StorageLocationConfig(temporaryFolder.newFolder(), null, null)), false, false, TaskConfig.BATCH_PROCESSING_MODE_DEFAULT.name()), null);
    remoteApiExecutor = Execs.singleThreaded("coordinator-api-executor");
    coordinatorClient = new LocalCoordinatorClient(remoteApiExecutor);
    prepareObjectMapper(objectMapper, getIndexIO());
}
Also used : StorageLocationConfig(org.apache.druid.segment.loading.StorageLocationConfig) WorkerConfig(org.apache.druid.indexing.worker.config.WorkerConfig) TaskConfig(org.apache.druid.indexing.common.config.TaskConfig) LocalIntermediaryDataManager(org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager) Before(org.junit.Before)

Aggregations

TaskConfig (org.apache.druid.indexing.common.config.TaskConfig)1 WorkerConfig (org.apache.druid.indexing.worker.config.WorkerConfig)1 LocalIntermediaryDataManager (org.apache.druid.indexing.worker.shuffle.LocalIntermediaryDataManager)1 StorageLocationConfig (org.apache.druid.segment.loading.StorageLocationConfig)1 Before (org.junit.Before)1