private void check(ArtifactMirror artifact) {
   File batchDir = artifact.getContents();
   assertThat(batchDir.isDirectory(), is(true));
   for (JobflowMirror jobflow : artifact.getBatch().getElements()) {
     File jobflowLib = CompilerConstants.getJobflowLibraryPath(batchDir, jobflow.getFlowId());
     assertThat(jobflowLib.isFile(), is(true));
   }
 }
Ejemplo n.º 2
0
 @Override
 public <T> Out<T> addOutput(String name, Class<T> dataType) {
   String basePath = CompilerConstants.getRuntimeWorkingDirectory();
   String path = MapReduceCompierUtil.createOutputLocation(basePath, name).toPath('/');
   return driver.createOut(name, new DirectExporterDescription(dataType, path));
 }