public static WorkflowJob.Status killedOozieJob(String oozieJobid) throws OozieClientException {
   OozieClient wc = new AuthOozieClient("http://10.25.22.19:8080/oozie", "ldap");
   wc.setHeader("j_username", "V_PA011_HADOOP_CORE");
   wc.setHeader("j_password", "{DES}/+J5e0Ed2/PABTqzeVGQ1g==");
   wc.kill(oozieJobid);
   return wc.getJobInfo(oozieJobid).getStatus();
 }
  public static WorkflowJob.Status queryJobStatus(String oozieJobid)
      throws OozieClientException, InterruptedException {
    OozieClient wc = new AuthOozieClient("http://10.25.22.19:8080/oozie", "ldap");
    wc.setHeader("j_username", "V_PA011_HADOOP_CORE");
    wc.setHeader("j_password", "{DES}/+J5e0Ed2/PABTqzeVGQ1g==");

    List<WorkflowAction> walist;
    int wacount = 0;
    while (wacount < 2) {
      walist = wc.getJobInfo(oozieJobid).getActions();
      wacount = walist.size();
      Thread.sleep(20000);
      System.out.println("#######-" + wacount);
      for (WorkflowAction wa : walist) {
        System.out.println("#######" + wa.getName());

        if (wa.getConsoleUrl().contains("jobdetails.jsp?jobid=")) {
          System.out.println("#######" + wa.getConsoleUrl());
        }
      }
    }

    return wc.getJobInfo(oozieJobid).getStatus();
  }