public class LocalOozieClientCoord extends OozieClient
This class is thread safe.
Syntax for filter for the getJobsInfo(String)
getJobsInfo(String, int, int) methods:
[NAME=VALUE][;NAME=VALUE]*.
Valid filter names are:
The query will do an AND among all the filter names. The query will do an OR among all the filter values for the same name. Multiple values must be specified as different name value pairs.
OozieClient.ClientCallable<T>, OozieClient.Instrumentation, OozieClient.MapClientCallable, OozieClient.Metrics, OozieClient.SORT_BY, OozieClient.SYSTEM_MODEACTION_MAX_RETRIES, ACTION_NOTIFICATION_URL, ACTION_RETRY_INTERVAL, APP_PATH, BUNDLE_APP_PATH, BUNDLE_ID, CHANGE_VALUE_CONCURRENCY, CHANGE_VALUE_ENDTIME, CHANGE_VALUE_PAUSETIME, CHANGE_VALUE_STATUS, COORD_ACTION_NOTIFICATION_PROXY, COORD_ACTION_NOTIFICATION_URL, COORDINATOR_APP_PATH, debugMode, EXTERNAL_ID, FILTER_APPNAME, FILTER_BUNDLE, FILTER_CREATED_TIME_END, FILTER_CREATED_TIME_START, FILTER_FREQUENCY, FILTER_GROUP, FILTER_ID, FILTER_JOBID, FILTER_NAME, FILTER_NOMINAL_TIME, FILTER_SLA_APPNAME, FILTER_SLA_EVENT_STATUS, FILTER_SLA_ID, FILTER_SLA_NOMINAL_END, FILTER_SLA_NOMINAL_START, FILTER_SLA_PARENT_ID, FILTER_SLA_STATUS, FILTER_SORT_BY, FILTER_STATUS, FILTER_TEXT, FILTER_UNIT, FILTER_USER, GROUP_NAME, JOB_ACL, LIBPATH, LOG_TOKEN, OOZIE_SUSPEND_ON_NODES, RERUN_FAIL_NODES, RERUN_SKIP_NODES, SLA_DISABLE_ALERT, SLA_DISABLE_ALERT_COORD, SLA_DISABLE_ALERT_OLDER_THAN, SLA_ENABLE_ALERT, USE_SYSTEM_LIBPATH, USER_NAME, WORKFLOW_NOTIFICATION_PROXY, WORKFLOW_NOTIFICATION_URL, WS_PROTOCOL_VERSION, WS_PROTOCOL_VERSION_0, WS_PROTOCOL_VERSION_1| Constructor and Description |
|---|
LocalOozieClientCoord(CoordinatorEngine coordEngine)
Create a coordinator client for Oozie local use.
|
doAs, getCoordActionMissingDependencies, getCoordActionMissingDependencies, getDebugMode, getRetryCount, getWorkflowActionRetriesInfo, mapToString, notEmpty, notNull, purgeCommand, setDebugMode, setRetryCount, writeToXmlpublic LocalOozieClientCoord(CoordinatorEngine coordEngine)
coordEngine - the engine instance to use.public List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup) throws OozieClientException
jobId - coordinator jobIdrerunType - rerun type 'date' if -date is used, 'action-id' if
-action is usedscope - rerun scope for date or actionIdsrefresh - true if -refresh is given in command optionnoCleanup - true if -nocleanup is given in command optionOozieClientException - if coordinators cannot be rerunpublic List<CoordinatorAction> reRunCoord(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup, boolean failed, Properties conf) throws OozieClientException
jobId - coordinator jobIdrerunType - rerun type 'date' if -date is used, 'action-id' if
-action is usedscope - rerun scope for date or actionIdsrefresh - true if -refresh is given in command optionnoCleanup - true if -nocleanup is given in command optionfailed - true if -failed is given in command optionconf - configuration information for the rerunOozieClientException - if coordinators cannot be rerunpublic CoordinatorJob getCoordJobInfo(String jobId) throws OozieClientException
jobId - job Id.OozieClientException - thrown if the job
info could not be retrieved.public CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len) throws OozieClientException
jobId - job Id.filter - filter the status filterstart - starting index in the list of actions belonging to the joblen - number of actions to be returnedOozieClientException - thrown if the job
info could not be retrieved.public CoordinatorAction getCoordActionInfo(String actionId) throws OozieClientException
actionId - Id.OozieClientException - thrown if the job info could not be
retrieved.public List<CoordinatorJob> getCoordJobsInfo(String filter, int start, int len) throws OozieClientException
filter - job filter. Refer to the OozieClient for the filter
syntax.start - jobs offset, base 1.len - number of jobs to return.OozieClientException - thrown if the jobs info could not be
retrieved.public String updateCoord(String jobId, Properties conf, String dryrun, String showDiff) throws OozieClientException
OozieClientExceptionpublic String updateCoord(String jobId, String dryrun, String showDiff) throws OozieClientException
OozieClientExceptionpublic CoordinatorJob getCoordJobInfo(String jobId, String filter, int start, int len, String order) throws OozieClientException
OozieClientExceptionpublic List<CoordinatorAction> kill(String jobId, String rangeType, String scope) throws OozieClientException
OozieClientExceptionpublic List<CoordinatorAction> ignore(String jobId, String scope) throws OozieClientException
OozieClientExceptionpublic List<WorkflowJob> getWfsForCoordAction(String coordActionId) throws OozieClientException
OozieClientExceptionpublic String getOozieUrl()
getOozieUrl in class OozieClientpublic String getProtocolUrl() throws OozieClientException
getProtocolUrl in class OozieClientOozieClientExceptionpublic void validateWSVersion() throws OozieClientException
validateWSVersion in class OozieClientOozieClientExceptionpublic Properties createConfiguration()
createConfiguration in class OozieClientpublic void setHeader(String name, String value)
setHeader in class OozieClientpublic String getHeader(String name)
getHeader in class OozieClientpublic void removeHeader(String name)
removeHeader in class OozieClientpublic Iterator<String> getHeaderNames()
getHeaderNames in class OozieClientpublic Map<String,String> getHeaders()
getHeaders in class OozieClientpublic String submit(Properties conf) throws OozieClientException
submit in class OozieClientOozieClientExceptionpublic void start(String jobId) throws OozieClientException
start in class OozieClientOozieClientExceptionpublic String run(Properties conf) throws OozieClientException
run in class OozieClientOozieClientExceptionpublic void reRun(String jobId, Properties conf) throws OozieClientException
reRun in class OozieClientOozieClientExceptionpublic void suspend(String jobId) throws OozieClientException
suspend in class OozieClientOozieClientExceptionpublic void resume(String jobId) throws OozieClientException
resume in class OozieClientOozieClientExceptionpublic void kill(String jobId) throws OozieClientException
kill in class OozieClientOozieClientExceptionpublic String dryrun(Properties conf) throws OozieClientException
dryrun in class OozieClientOozieClientExceptionpublic String getStatus(String jobId) throws OozieClientException
getStatus in class OozieClientOozieClientExceptionpublic String getJobDefinition(String jobId) throws OozieClientException
getJobDefinition in class OozieClientOozieClientExceptionpublic String getJobId(String externalId) throws OozieClientException
getJobId in class OozieClientOozieClientExceptionpublic void slaEnableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaEnableAlert in class OozieClientOozieClientExceptionpublic void slaEnableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaEnableAlert in class OozieClientOozieClientExceptionpublic void slaDisableAlert(String bundleId, String actions, String dates, String coords) throws OozieClientException
slaDisableAlert in class OozieClientOozieClientExceptionpublic void slaDisableAlert(String jobIds, String actions, String dates) throws OozieClientException
slaDisableAlert in class OozieClientOozieClientExceptionpublic void slaChange(String bundleId, String actions, String dates, String coords, String newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void slaChange(String jobIds, String actions, String dates, String newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void slaChange(String bundleId, String actions, String dates, String coords, Map<String,String> newSlaParams) throws OozieClientException
slaChange in class OozieClientOozieClientExceptionpublic void change(String jobId, String changeValue) throws OozieClientException
change in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject bulkModifyJobs(String actionType, String filter, String jobType, int start, int len) throws OozieClientException
bulkModifyJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject killJobs(String filter, String jobType, int start, int len) throws OozieClientException
killJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject suspendJobs(String filter, String jobType, int start, int len) throws OozieClientException
suspendJobs in class OozieClientOozieClientExceptionpublic org.json.simple.JSONObject resumeJobs(String filter, String jobType, int start, int len) throws OozieClientException
resumeJobs in class OozieClientOozieClientExceptionpublic WorkflowJob getJobInfo(String jobId) throws OozieClientException
getJobInfo in class OozieClientOozieClientExceptionpublic WorkflowJob getJobInfo(String jobId, int start, int len) throws OozieClientException
getJobInfo in class OozieClientOozieClientExceptionpublic List<WorkflowJob> getJobsInfo(String filter, int start, int len) throws OozieClientException
getJobsInfo in class OozieClientOozieClientExceptionpublic List<WorkflowJob> getJobsInfo(String filter) throws OozieClientException
getJobsInfo in class OozieClientOozieClientExceptionpublic List<BulkResponse> getBulkInfo(String filter, int start, int len) throws OozieClientException
getBulkInfo in class OozieClientOozieClientExceptionpublic WorkflowAction getWorkflowActionInfo(String actionId) throws OozieClientException
getWorkflowActionInfo in class OozieClientOozieClientExceptionpublic BundleJob getBundleJobInfo(String jobId) throws OozieClientException
getBundleJobInfo in class OozieClientOozieClientExceptionpublic Void reRunBundle(String jobId, String coordScope, String dateScope, boolean refresh, boolean noCleanup) throws OozieClientException
reRunBundle in class OozieClientOozieClientExceptionpublic List<BundleJob> getBundleJobsInfo(String filter, int start, int len) throws OozieClientException
getBundleJobsInfo in class OozieClientOozieClientExceptionprotected HttpURLConnection createRetryableConnection(URL url, String method) throws IOException
createRetryableConnection in class OozieClientIOExceptionprotected HttpURLConnection createConnection(URL url, String method) throws IOException, OozieClientException
createConnection in class OozieClientIOExceptionOozieClientExceptionpublic JMSConnectionInfo getJMSConnectionInfo() throws OozieClientException
getJMSConnectionInfo in class OozieClientOozieClientExceptionpublic String getJobLog(String jobId) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic void getJobAuditLog(String jobId, PrintStream ps) throws OozieClientException
getJobAuditLog in class OozieClientOozieClientExceptionpublic void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, String logFilter, PrintStream ps) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic void getJobErrorLog(String jobId, PrintStream ps) throws OozieClientException
getJobErrorLog in class OozieClientOozieClientExceptionpublic void getJobLog(String jobId, String logRetrievalType, String logRetrievalScope, PrintStream ps) throws OozieClientException
getJobLog in class OozieClientOozieClientExceptionpublic String getJMSTopicName(String jobId) throws OozieClientException
getJMSTopicName in class OozieClientOozieClientExceptionpublic void getSlaInfo(int start, int len, String filter) throws OozieClientException
getSlaInfo in class OozieClientOozieClientExceptionpublic void setSystemMode(OozieClient.SYSTEM_MODE status) throws OozieClientException
setSystemMode in class OozieClientOozieClientExceptionpublic OozieClient.SYSTEM_MODE getSystemMode() throws OozieClientException
getSystemMode in class OozieClientOozieClientExceptionpublic String updateShareLib() throws OozieClientException
updateShareLib in class OozieClientOozieClientExceptionpublic String listShareLib(String sharelibKey) throws OozieClientException
listShareLib in class OozieClientOozieClientExceptionpublic String getServerBuildVersion() throws OozieClientException
getServerBuildVersion in class OozieClientOozieClientExceptionpublic String getClientBuildVersion()
getClientBuildVersion in class OozieClientpublic String validateXML(String file) throws OozieClientException
validateXML in class OozieClientOozieClientExceptionpublic void pollJob(String id, int timeout, int interval, boolean verbose) throws OozieClientException
pollJob in class OozieClientOozieClientExceptionpublic List<String> getQueueDump() throws OozieClientException
getQueueDump in class OozieClientOozieClientExceptionpublic Map<String,String> getAvailableOozieServers() throws OozieClientException
getAvailableOozieServers in class OozieClientOozieClientExceptionpublic Map<String,String> getServerConfiguration() throws OozieClientException
getServerConfiguration in class OozieClientOozieClientExceptionpublic Map<String,String> getJavaSystemProperties() throws OozieClientException
getJavaSystemProperties in class OozieClientOozieClientExceptionpublic Map<String,String> getOSEnv() throws OozieClientException
getOSEnv in class OozieClientOozieClientExceptionpublic OozieClient.Metrics getMetrics() throws OozieClientException
getMetrics in class OozieClientOozieClientExceptionpublic OozieClient.Instrumentation getInstrumentation() throws OozieClientException
getInstrumentation in class OozieClientOozieClientExceptionCopyright © 2018 Apache Software Foundation. All rights reserved.