|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.cli.OozieCLI
public class OozieCLI
Oozie command line utility.
Constructor Summary | |
---|---|
OozieCLI()
Create an Oozie CLI instance. |
Method Summary | |
---|---|
protected void |
addAuthOptions(org.apache.commons.cli.Options options)
Add authentication specific options to oozie cli |
protected void |
addHeader(OozieClient wc)
|
protected org.apache.commons.cli.Options |
createAdminOptions()
Create option for command line option 'admin' |
protected org.apache.commons.cli.Options |
createInfoOptions()
Create option for command line option 'info' |
protected org.apache.commons.cli.Options |
createJobOptions()
Create option for command line option 'job' |
protected org.apache.commons.cli.Options |
createJobsOptions()
Create option for command line option 'jobs' |
protected org.apache.commons.cli.Options |
createMROptions()
Create option for command line option 'mapreduce' |
protected OozieClient |
createOozieClient(org.apache.commons.cli.CommandLine commandLine)
Create a OozieClient. |
protected org.apache.commons.cli.Options |
createPigOptions()
Create option for command line option 'pig' |
protected org.apache.commons.cli.Options |
createSlaOptions()
Create option for command line option 'sla' |
protected XOozieClient |
createXOozieClient(org.apache.commons.cli.CommandLine commandLine)
Create a XOozieClient. |
protected String |
getAuthOption(org.apache.commons.cli.CommandLine commandLine)
Get auth option from command line |
protected String[] |
getCLIHelp()
Return Oozie CLI top help lines. |
protected String |
getOozieUrl(org.apache.commons.cli.CommandLine commandLine)
|
static void |
main(String[] args)
Entry point for the Oozie CLI when invoked from the command line. |
int |
run(String[] args)
Run a CLI programmatically. |
protected void |
setDebugMode(OozieClient wc,
boolean debugOpt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ENV_OOZIE_URL
public static final String ENV_OOZIE_DEBUG
public static final String ENV_OOZIE_TIME_ZONE
public static final String WS_HEADER_PREFIX
public static final String HELP_CMD
public static final String VERSION_CMD
public static final String JOB_CMD
public static final String JOBS_CMD
public static final String ADMIN_CMD
public static final String VALIDATE_CMD
public static final String SLA_CMD
public static final String PIG_CMD
public static final String MR_CMD
public static final String INFO_CMD
public static final String OOZIE_OPTION
public static final String CONFIG_OPTION
public static final String SUBMIT_OPTION
public static final String OFFSET_OPTION
public static final String START_OPTION
public static final String RUN_OPTION
public static final String DRYRUN_OPTION
public static final String SUSPEND_OPTION
public static final String RESUME_OPTION
public static final String KILL_OPTION
public static final String CHANGE_OPTION
public static final String CHANGE_VALUE_OPTION
public static final String RERUN_OPTION
public static final String INFO_OPTION
public static final String LOG_OPTION
public static final String ACTION_OPTION
public static final String DEFINITION_OPTION
public static final String CONFIG_CONTENT_OPTION
public static final String DO_AS_OPTION
public static final String LEN_OPTION
public static final String FILTER_OPTION
public static final String JOBTYPE_OPTION
public static final String SYSTEM_MODE_OPTION
public static final String VERSION_OPTION
public static final String STATUS_OPTION
public static final String LOCAL_TIME_OPTION
public static final String TIME_ZONE_OPTION
public static final String QUEUE_DUMP_OPTION
public static final String RERUN_COORD_OPTION
public static final String DATE_OPTION
public static final String RERUN_REFRESH_OPTION
public static final String RERUN_NOCLEANUP_OPTION
public static final String AUTH_OPTION
public static final String VERBOSE_OPTION
public static final String VERBOSE_DELIMITER
public static final String DEBUG_OPTION
public static final String PIGFILE_OPTION
public static final String INFO_TIME_ZONES_OPTION
public static final String BULK_OPTION
Constructor Detail |
---|
public OozieCLI()
Method Detail |
---|
public static void main(String[] args)
args
- options and arguments for the Oozie CLI.protected String[] getCLIHelp()
protected void addAuthOptions(org.apache.commons.cli.Options options)
options
- the collection of options to add auth optionsprotected org.apache.commons.cli.Options createAdminOptions()
protected org.apache.commons.cli.Options createJobOptions()
protected org.apache.commons.cli.Options createJobsOptions()
protected org.apache.commons.cli.Options createSlaOptions()
protected org.apache.commons.cli.Options createPigOptions()
protected org.apache.commons.cli.Options createInfoOptions()
protected org.apache.commons.cli.Options createMROptions()
public int run(String[] args)
args
- options and arguments for the Oozie CLI.
protected String getOozieUrl(org.apache.commons.cli.CommandLine commandLine)
protected void addHeader(OozieClient wc)
protected String getAuthOption(org.apache.commons.cli.CommandLine commandLine)
commandLine
- the command line object
protected OozieClient createOozieClient(org.apache.commons.cli.CommandLine commandLine) throws OozieCLIException
OozieClient
.
commandLine
- the parsed command line options.
OozieCLIException
- thrown if the OozieClient could not be configured.protected XOozieClient createXOozieClient(org.apache.commons.cli.CommandLine commandLine) throws OozieCLIException
OozieClient
.
commandLine
- the parsed command line options.
OozieCLIException
- thrown if the XOozieClient could not be configured.protected void setDebugMode(OozieClient wc, boolean debugOpt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |