Details
Description
Outside of HUE, Oozie has a RESTful API that you can quickly deploy new workflows and coordinators to; however, there is no equivalent API inside the HUE environment. This causes unnecessary manual steps to import workflows through the Import UI each time a change is made to a workflow. It would be highly beneficial to expose a similar RESTful API for HUE that can be invoked to update the underlying HUE database when a new Oozie workflow has been deployed or updated from an automated process (i.e. Chef or Puppet).
Would like to propose something similar to the following:
POST oozie/workflows
Request { "name":"{name}", "description":"{description}", "is_shared":"{is_shared}", "hdfs_deployment_directory":"{hdfs_deployment_directory}", "job_xml_file":"{hdfs_job_xml_file}", "workflow":"{xml workflow definition}" } Response { "id":"{id}" }
PUT oozie/workflows/{id}
Request { "name":"{name}", "description":"{description}", "is_shared":"{is_shared}", "hdfs_deployment_directory":"{hdfs_deployment_directory}", "job_xml_file":"{hdfs_job_xml_file}", "workflow":"{xml workflow definition}" } Response { }