Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-814

Add kill in Oozie for ClientDSL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 0.7.0
    • 0.12.0
    • ClientDSL

    Description

      The ClientDSL for Oozie shoud provide the kill method.
      It could be easily done with something like that :

              protected Callable<Kill.Response> callable() {
                  return new Callable<Kill.Response>() {
                      @Override
                      public Kill.Response call() throws Exception {
                          URIBuilder uri = uri( Workflow.SERVICE_PATH, "/job/", jobId );
                          uri.addParameter("action", "kill");
                          HttpPut request = new HttpPut( uri.build() );
                          return new Kill.Response( execute( request ) );
                      }
                  };
              }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Khanh Khanh Maudoux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: