if (propertiesFile != null) {
conf.load(new FileInputStream(propertiesFile));
}
// submit and start the workflow job
String jobId = wc.run(conf);
Thread.sleep(1000);
System.out.println("Workflow job submitted");
// wait until the workflow job finishes printing the status every 10 seconds
while (wc.getJobInfo(jobId).getStatus() == WorkflowJob.Status.RUNNING) {