if ( ( copyToLocal ) || ( runLocal ) ) {
File path = new File(args[1]);
path.mkdirs();
}
Tool first = new FirstDriver(configuration);
int status = first.run(new String[] { args[0], args[1] + OUTPUT_PATH_POSTFIX_1 });
if (status != 0){ return status ;}
createOffsetsFile(fs, args[1] + OUTPUT_PATH_POSTFIX_1, args[1] + OUTPUT_PATH_POSTFIX_1);
Path offsets = new Path(args[1] + OUTPUT_PATH_POSTFIX_1, Constants.OFFSETS_FILENAME);
DistributedCache.addCacheFile(offsets.toUri(), configuration);
Tool second = new SecondDriver(configuration);
status = second.run(new String[] { args[0], args[1] + OUTPUT_PATH_POSTFIX_2 });
if (status != 0){ return status ;}
Tool third = new ThirdDriver(configuration);
status = third.run(new String[] { args[1] + OUTPUT_PATH_POSTFIX_2, args[1] + OUTPUT_PATH_POSTFIX_3 });
if (status != 0){ return status ;}
Tool fourth = new FourthDriver(configuration);
status = fourth.run(new String[] { args[1] + OUTPUT_PATH_POSTFIX_3, args[1] + OUTPUT_PATH_POSTFIX_4 });
if (status != 0){ return status ;}
if ( copyToLocal ) {
Tool download = new download(configuration);
download.run(new String[] { args[1] + OUTPUT_PATH_POSTFIX_2, args[1] + OUTPUT_PATH_POSTFIX_4, args[1] });
}
if ( verify ) {
DatasetGraphTDB dsgMem = load(args[0]);
Location location = new Location(args[1]);
if (!copyToLocal) {
// TODO: this is a sort of a cheat and it could go away (if it turns out to be too slow)!
download.fixNodeTable2(location);
}
DatasetGraphTDB dsgDisk = SetupTDB.buildDataset(location) ;
boolean isomorphic = isomorphic ( dsgMem, dsgDisk );
System.out.println ("> " + isomorphic);