ImmutableList<String> targetPartitions =
ImmutableList.of("TestDB_1", "TestDB_2", "TestDB_3", "TestDB_5", "TestDB_8", "TestDB_13");
// construct and submit our basic workflow
Map<String, String> commandConfig = ImmutableMap.of(TIMEOUT_CONFIG, String.valueOf(100));
Workflow flow =
WorkflowGenerator.generateDefaultSingleJobWorkflowBuilderWithExtraConfigs(jobResource,
commandConfig, JobConfig.MAX_ATTEMPTS_PER_TASK, String.valueOf(1),
JobConfig.TARGET_PARTITIONS, Joiner.on(",").join(targetPartitions)).build();
_driver.start(flow);