use of org.apache.gobblin.runtime.commit.FsCommitSequenceStore in project incubator-gobblin by apache.
the class FsCommitSequenceStoreTest method setUp.
@BeforeClass
public void setUp() throws IOException {
FileSystem fs = FileSystem.getLocal(new Configuration());
this.store = new FsCommitSequenceStore(fs, new Path("commit-sequence-store-test"));
State props = new State();
props.setId("propsId");
props.setProp("prop1", "valueOfProp1");
props.setProp("prop2", "valueOfProp2");
DatasetState datasetState = new DatasetState();
datasetState.setDatasetUrn(this.datasetUrn);
datasetState.incrementJobFailures();
this.sequence = new CommitSequence.Builder().withJobName("testjob").withDatasetUrn("testurn").beginStep(FsRenameCommitStep.Builder.class).from(new Path("/ab/cd")).to(new Path("/ef/gh")).withProps(props).endStep().beginStep(DatasetStateCommitStep.Builder.class).withDatasetUrn(this.datasetUrn).withDatasetState(datasetState).withProps(props).endStep().build();
}
Aggregations