String jobName) throws ExecException {
try {
FileSpec spec = ExecTools.checkLeafIsStore(plan, pigContext);
MapReduceLauncher launcher = new MapReduceLauncher();
boolean success = launcher.launchPig(plan, jobName, pigContext);
if(success)
return new HJob(ExecJob.JOB_STATUS.COMPLETED, pigContext, spec);
else
return new HJob(ExecJob.JOB_STATUS.FAILED, pigContext, null);