@Override public void configure() { ETLBatchConfig config = getConfig().convertOldConfig(); setDescription(DEFAULT_DESCRIPTION); BatchPipelineSpec spec = new BatchPipelineSpecGenerator<>(getConfigurer(), ImmutableSet.of(BatchSource.PLUGIN_TYPE), ImmutableSet.of(BatchSink.PLUGIN_TYPE), config.getNumOfRecordsPreview(), config.getProperties(), false); addMapReduce(new ETLMapReduce(batchPhaseSpec)); break; case SPARK: new HashMap<String, String>(), config.getNumOfRecordsPreview(), config.getProperties(), false); addSpark(new ETLSpark(batchPhaseSpec)); break; default: addWorkflow(new ETLWorkflow(spec, config.getEngine())); schedule(buildSchedule(SCHEDULE_NAME, ProgramType.WORKFLOW, ETLWorkflow.NAME) .setDescription("ETL Batch schedule") .triggerByTime(config.getSchedule()));