public class HadoopEngine extends DDPEngine
NOTE: Only DDP pattern and I/O actors may be present in the workflow. Other actors must placed inside the composite pattern actors or in a different sub-workflow.
| Modifier and Type | Field and Description |
|---|---|
boolean |
_autoHDFSStage
If true, input and output in local file system is automatically staged into or out from HDFS.
|
boolean |
_overwriteOutput
If true, the output directory will be deleted first.
|
Parameter |
autoHDFSStage
If true, input and output in local file system is automatically staged into or out from HDFS.
|
static java.lang.String |
CORE_SITE |
static java.lang.String |
FS_NAME |
static java.lang.String |
HDFS_NAME |
static java.lang.String |
MAP_CHILD_ENV |
static java.lang.String |
MAPRED_SITE |
static java.lang.String |
MR_FRAMEWORK_NAME |
static java.lang.String |
MR_JOBTRACKER_ADDRESS |
Parameter |
overwriteOutput
If true, the output directory will be deleted first.
|
static java.lang.String |
REDUCE_CHILD_ENV |
Parameter |
removeTmpHDFSDir
If true, the temporary dir created on HDFS during its execution will be removed after workflow execution.
|
static java.lang.String |
RES_MANAGER_URL |
static java.lang.String |
YARN_RM_ADDRESS |
static java.lang.String |
YARN_SITE |
_additionalJars, _classLoader, _configDirStr, _CONNECT_TIMEOUT, _container, _degreeOfParallelism, _director, _displayRedirectDir, _engineName, _jobArgumentsMap, _jobDir, _jobLock, _sameJVM, _serverStartStopLock, _subWorkflows, _writeSubWorkflowsToFiles| Constructor and Description |
|---|
HadoopEngine(DDPDirector director) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addParameters()
Add parameters to the containing director.
|
protected void |
_executeDDPJob()
Execute the DDP job.
|
protected void |
_removeParameters()
Remove engine-specific parameters from the director.
|
protected java.util.Map<java.lang.String,Type> |
_setPortTypes(DDPPatternActor actor)
Set the port types inside a cloned pattern actor.
|
java.lang.Object |
clone(Workspace workspace)
Clone the HadoopEngine into the specified workspace.
|
boolean |
postfire()
Postfire the engine.
|
void |
preinitialize()
Initialize fields from parameters.
|
static void |
shutdownServer()
Shutdown the Hadoop server if one was started.
|
void |
stop()
Stop any running Hadoop jobs.
|
void |
wrapup()
Free resources.
|
_checkConfigDir, _checkFilesBeforeStartingServer, _checkModel, _checkModelForNonDDPActors, _checkServer, _copyParameters, _createJobDirectory, _getJarList, _getParametersInHierarchy, _parseOutputFromStartingServer, attributeChanged, clone, closeAllEffigies, createEffigy, fire, getDisplayRedirectDir, getModel, getName, getServerTypespublic static final java.lang.String HDFS_NAME
public static final java.lang.String FS_NAME
public static final java.lang.String RES_MANAGER_URL
public static final java.lang.String CORE_SITE
public static final java.lang.String MAPRED_SITE
public static final java.lang.String YARN_SITE
public static final java.lang.String MAP_CHILD_ENV
public static final java.lang.String REDUCE_CHILD_ENV
public static final java.lang.String MR_JOBTRACKER_ADDRESS
public static final java.lang.String MR_FRAMEWORK_NAME
public static final java.lang.String YARN_RM_ADDRESS
public Parameter overwriteOutput
public Parameter removeTmpHDFSDir
public Parameter autoHDFSStage
public boolean _overwriteOutput
public boolean _autoHDFSStage
public HadoopEngine(DDPDirector director) throws IllegalActionException, NameDuplicationException
public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
protected void _executeDDPJob() throws IllegalActionException
DDPEngine_executeDDPJob in class DDPEngineIllegalActionExceptionpublic boolean postfire() throws IllegalActionException
DDPEnginepostfire in class DDPEngineIllegalActionExceptionpublic void preinitialize() throws IllegalActionException
DDPEnginepreinitialize in class DDPEngineIllegalActionExceptionpublic void stop() throws IllegalActionException
stop in class DDPEngineIllegalActionExceptionpublic static void shutdownServer() throws IllegalActionException
IllegalActionExceptionpublic void wrapup() throws IllegalActionException
wrapup in class DDPEngineIllegalActionExceptionprotected void _addParameters() throws IllegalActionException, NameDuplicationException
_addParameters in class DDPEngineIllegalActionExceptionNameDuplicationExceptionprotected void _removeParameters() throws IllegalActionException, NameDuplicationException
_removeParameters in class DDPEngineIllegalActionExceptionNameDuplicationExceptionprotected java.util.Map<java.lang.String,Type> _setPortTypes(DDPPatternActor actor) throws IllegalActionException
_setPortTypes in class DDPEngineactor - the cloned actorIllegalActionException