use of org.apache.gobblin.runtime.TaskContext in project incubator-gobblin by apache.
the class HiveMaterializerTest method getTaskContextForRun.
private TaskContext getTaskContextForRun(WorkUnit workUnit) {
workUnit.setProp(ConfigurationKeys.JOB_ID_KEY, "job123");
workUnit.setProp(ConfigurationKeys.TASK_ID_KEY, "task123");
workUnit.setProp(HiveConverterUtils.HIVE_DATASET_DESTINATION_SKIP_SETGROUP, Boolean.toString(true));
HiveTask.disableHiveWatermarker(workUnit);
JobState jobState = new JobState("job", "job123");
return new TaskContext(new WorkUnitState(workUnit, jobState));
}
Aggregations