[
https://issues.apache.org/jira/browse/KNOX-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Larry McCay updated KNOX-814:
-----------------------------
Fix Version/s: 0.12.0
> Add kill in Oozie for ClientDSL
> -------------------------------
>
> Key: KNOX-814
> URL: https://issues.apache.org/jira/browse/KNOX-814
> Project: Apache Knox
> Issue Type: Improvement
> Components: ClientDSL
> Affects Versions: 0.7.0
> Reporter: Khanh Maudoux
> Priority: Minor
> Labels: KIP-4
> Fix For: 0.12.0
>
>
> The ClientDSL for Oozie shoud provide the kill method.
> It could be easily done with something like that :
> {code:java}
> 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 ) );
> }
> };
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)