public void execute () throws Exception {
JobConf conf = createJobConf();
RunningJob runningJob = new JobClient(conf).submitJob(conf);
String id = runningJob.getJobID();
System.out.println("Hadoop job id=" + id);
runningJob.waitForCompletion();
if (!runningJob.isSuccessful())
throw new Exception("Hadoop ETL job failed! Please check status on http://"
+ conf.get("mapred.job.tracker") + "/jobdetails.jsp?jobid=" + id);
}