|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.client.OozieClient org.apache.oozie.client.XOozieClient
public class XOozieClient
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.oozie.client.OozieClient |
---|
OozieClient.ClientCallable<T>, OozieClient.SYSTEM_MODE |
Field Summary | |
---|---|
static String |
ARCHIVES
|
static String |
FILES
|
static String |
IS_PROXY_SUBMISSION
|
static String |
JT
|
static String |
JT_2
|
static String |
JT_PRINCIPAL
Deprecated. |
static String |
NN
|
static String |
NN_2
|
static String |
NN_PRINCIPAL
Deprecated. |
static String |
PIG_OPTIONS
|
static String |
PIG_SCRIPT
|
Constructor Summary | |
---|---|
protected |
XOozieClient()
|
|
XOozieClient(String oozieUrl)
Create an eXtended Workflow client instance. |
Method Summary | |
---|---|
void |
addArchive(Properties conf,
String file)
The equivalent to |
void |
addFile(Properties conf,
String file)
The equivalent to |
void |
setLib(Properties conf,
String pathStr)
set LIBPATH for HTTP submission job. |
String |
submitMapReduce(Properties conf)
Submit a Map/Reduce job via HTTP. |
String |
submitPig(Properties conf,
String pigScriptFile,
String[] pigArgs)
Submit a Pig job via HTTP. |
Methods inherited from class org.apache.oozie.client.OozieClient |
---|
change, createConfiguration, createConnection, doAs, dryrun, getBulkInfo, getBundleJobInfo, getBundleJobsInfo, getClientBuildVersion, getCoordActionInfo, getCoordJobInfo, getCoordJobInfo, getCoordJobsInfo, getDebugMode, getHeader, getHeaderNames, getHeaders, getJobDefinition, getJobId, getJobInfo, getJobInfo, getJobLog, getJobLog, getJobsInfo, getJobsInfo, getOozieUrl, getProtocolUrl, getQueueDump, getServerBuildVersion, getSlaInfo, getSystemMode, getWorkflowActionInfo, kill, notEmpty, notNull, removeHeader, reRun, reRunBundle, reRunCoord, resume, run, setDebugMode, setHeader, setSystemMode, start, submit, suspend, validateWSVersion, writeToXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JT
public static final String JT_2
public static final String NN
public static final String NN_2
@Deprecated public static final String JT_PRINCIPAL
@Deprecated public static final String NN_PRINCIPAL
public static final String PIG_SCRIPT
public static final String PIG_OPTIONS
public static final String FILES
public static final String ARCHIVES
public static final String IS_PROXY_SUBMISSION
Constructor Detail |
---|
protected XOozieClient()
public XOozieClient(String oozieUrl)
oozieUrl
- URL of the Oozie instance it will interact with.Method Detail |
---|
public String submitPig(Properties conf, String pigScriptFile, String[] pigArgs) throws IOException, OozieClientException
conf
- job configuration.pigScriptFile
- pig script file.pigArgs
- pig arguments string.
OozieClientException
- thrown if the job could not be submitted.
IOException
public String submitMapReduce(Properties conf) throws OozieClientException
conf
- job configuration.
OozieClientException
- thrown if the job could not be submitted.public void setLib(Properties conf, String pathStr)
conf
- Configuration object.pathStr
- lib HDFS path.public void addFile(Properties conf, String file)
conf
- Configuration object.file
- file HDFS path. A "#..." symbolic string can be appended to the path to specify symbolic link name.
For example, "/user/oozie/parameter_file#myparams". If no "#..." is specified, file name will be used as
symbolic link name.public void addArchive(Properties conf, String file)
conf
- Configuration object.file
- file HDFS path. A "#..." symbolic string can be appended to the path to specify symbolic link name.
For example, "/user/oozie/udf1.jar#my.jar". If no "#..." is specified, file name will be used as
symbolic link name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |