[ 
https://issues.apache.org/jira/browse/OOZIE-1841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000206#comment-14000206
 ] 

Josh Kurz commented on OOZIE-1841:
----------------------------------

1769 is about updating an existing coordinator and is a nice feature, but I 
would like to submit a new coordinator with the API and not have to submit a 
configuration xml with the post. I would rather just submit a json payload with 
a url that points to a properties file that has all of the information already. 
This post could also have information inside of it, that would overwrite items 
that are set in the properties file. 

Use case: (submit a coordinator)

post to /jobs with xml config || post to /jobs with json payload that points to 
location of properties file.

This would just allow a simpler way to specify properties when submitting jobs 
IMO. Currently we run jobs from the cmd on the oozie box itself. These 
properties files are created via chef for each possible job that we would like 
to run and are used in the oozie commands. We are building a UI that allows us 
to simply create our own jobs, which works with the oozie api. So instead of 
recreating these properties files in xml format to submit from the UI, I 
believe it would be much easier to just point to their location when submitting 
a job.  

> Allow for specifications of wf/coordinator propertey files from web api
> -----------------------------------------------------------------------
>
>                 Key: OOZIE-1841
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1841
>             Project: Oozie
>          Issue Type: New Feature
>            Reporter: Josh Kurz
>
> I would like to be able to post to oozie/v1/jobs and just set a configuration 
> path. The xml files for each coordinator job that could be created are 
> already created and are on the uzi box (for my use case). Is there a way to 
> just tell oozie that I would like to use one of those pre made xml files vs 
> submitting xml with an http post. 
> curl -X POST -H "Content-Type: application/json" -d {"configUrl": 
> "/path/to/uzi/configuration"} "http://uzibox:11000/oozie/v1/jobs?action=start";



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to