JoinExample intersect = new JoinExample();
String[] intersectArgs = new String[] {
dataPath1.toString(), dataPath2.toString(), "2", outPath.toString() };
assertEquals(0, intersect.run(tezConf, intersectArgs, tezSession));
JoinValidate intersectValidate = new JoinValidate();
String[] intersectValidateArgs = new String[] {
expectedOutputPath.toString(), outPath.toString(), "3" };
assertEquals(0, intersectValidate.run(tezConf, intersectValidateArgs, tezSession));
} finally {
if (tezSession != null) {
tezSession.stop();
}