private MiniCluster cluster = MiniCluster.buildCluster();
@Test
public void testLocalModeInputPositive() throws Throwable {
PigContext ctx = new PigContext(ExecType.LOCAL, new Properties()) ;
ctx.connect() ;
String inputfile = generateTempFile().getAbsolutePath() ;
String outputfile = generateNonExistenceTempFile().getAbsolutePath() ;
LogicalPlan plan = genNewLoadStorePlan(inputfile, outputfile, ctx.getFs()) ;
CompilationMessageCollector collector = new CompilationMessageCollector() ;
boolean isBeforeOptimizer = false; // we are not optimizing in this testcase
LogicalPlanValidationExecutor executor = new LogicalPlanValidationExecutor(plan, ctx, isBeforeOptimizer) ;
executor.validate(plan, collector) ;