| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_NAME_CLIENT_WORKFLOW |
static String |
HERD_OOZIE_WRAPPER_WORKFLOW_NAME |
static String |
OOZIE_ERROR_CODE_JOB_DOES_NOT_EXIST |
static String |
OOZIE_WORKFLOW_JOB_STATUS_DM_FAILED |
static String |
OOZIE_WORKFLOW_JOB_STATUS_DM_PREP |
| Constructor and Description |
|---|
OozieDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.oozie.client.WorkflowJob |
getEmrOozieWorkflow(String masterIpAddress,
String emrOozieWorkflowId)
Gets the oozie workflow job from oozie server.
|
List<org.apache.oozie.client.WorkflowJob> |
getRunningEmrOozieJobsByName(String masterIpAddress,
String appName,
int start,
int len)
Gets the oozie jobs in RUNNING status.
|
String |
runOozieWorkflow(String masterIpAddress,
String workflowLocation,
List<Parameter> parameters) |
public static final String OOZIE_WORKFLOW_JOB_STATUS_DM_PREP
public static final String OOZIE_WORKFLOW_JOB_STATUS_DM_FAILED
public static final String OOZIE_ERROR_CODE_JOB_DOES_NOT_EXIST
public static final String HERD_OOZIE_WRAPPER_WORKFLOW_NAME
public static final String ACTION_NAME_CLIENT_WORKFLOW
public String runOozieWorkflow(String masterIpAddress, String workflowLocation, List<Parameter> parameters) throws Exception
runOozieWorkflow in interface OozieDaomasterIpAddress - the IP address of oozie master server.workflowLocation - the location of workflow on S3.parameters - the configuration properties for the workflow.Exceptionpublic org.apache.oozie.client.WorkflowJob getEmrOozieWorkflow(String masterIpAddress, String emrOozieWorkflowId) throws org.apache.oozie.client.OozieClientException
OozieDaogetEmrOozieWorkflow in interface OozieDaomasterIpAddress - the IP address of oozie master server.emrOozieWorkflowId - the oozie workflow job id.org.apache.oozie.client.OozieClientExceptionpublic List<org.apache.oozie.client.WorkflowJob> getRunningEmrOozieJobsByName(String masterIpAddress, String appName, int start, int len) throws org.apache.oozie.client.OozieClientException
OozieDaogetRunningEmrOozieJobsByName in interface OozieDaomasterIpAddress - the IP address of oozie master server.appName - the workflow job application name, if no application name is provided returns all workflows.start - jobs offset, base 1.len - number of jobs to return.org.apache.oozie.client.OozieClientExceptionCopyright © 2017. All rights reserved.