public class Hadoop2TezFlow extends BaseFlow<org.apache.tez.dag.api.TezConfiguration>
Flow
.
HadoopFlow must be created through a Hadoop2TezFlowConnector
instance.
If classpath paths are provided on the FlowDef
, the Hadoop distributed cache mechanism will be used
to augment the remote classpath.
Any path elements that are relative will be uploaded to HDFS, and the HDFS URI will be used on the JobConf. Note all paths are added as "files" to the JobConf, not archives, so they aren't needlessly uncompressed cluster side.
Hadoop2TezFlowConnector
BaseFlow.FlowHolder
completed, flowCanonicalHash, flowDescriptor, flowElementGraph, flowStats, flowStepGraph, platformInfo, sinks, sources, steps, stop, stopJobsOnExit, thread, throwable
CASCADING_FLOW_ID
NULL
Modifier | Constructor and Description |
---|---|
protected |
Hadoop2TezFlow() |
|
Hadoop2TezFlow(PlatformInfo platformInfo,
java.util.Map<java.lang.Object,java.lang.Object> properties,
org.apache.tez.dag.api.TezConfiguration flowConf,
FlowDef flowDef) |
Modifier and Type | Method and Description |
---|---|
org.apache.tez.dag.api.TezConfiguration |
getConfig()
Method getConfig returns the internal configuration object.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getConfigAsProperties()
Method getConfigAsProperties converts the internal configuration object into a
Map of
key value pairs. |
org.apache.tez.dag.api.TezConfiguration |
getConfigCopy()
Method getConfigCopy returns a copy of the internal configuration object.
|
FlowProcess<org.apache.tez.dag.api.TezConfiguration> |
getFlowProcess() |
java.lang.String |
getFlowStagingPath() |
protected int |
getMaxNumParallelSteps() |
java.lang.String |
getProperty(java.lang.String key)
Method getProperty returns the value associated with the given key from the underlying properties system.
|
protected long |
getTotalSliceCPUMilliSeconds() |
protected void |
initConfig(java.util.Map<java.lang.Object,java.lang.Object> properties,
org.apache.tez.dag.api.TezConfiguration parentConfig)
This method creates a new internal Config with the parentConfig as defaults using the properties to override
the defaults.
|
protected void |
initFromProperties(java.util.Map<java.lang.Object,java.lang.Object> properties) |
protected void |
internalClean(boolean stop) |
protected void |
internalShutdown() |
protected void |
internalStart() |
boolean |
isPreserveTemporaryFiles()
Method isPreserveTemporaryFiles returns false if temporary files will be cleaned when this Flow completes.
|
protected org.apache.tez.dag.api.TezConfiguration |
newConfig(org.apache.tez.dag.api.TezConfiguration defaultConfig) |
protected void |
setConfigProperty(org.apache.tez.dag.api.TezConfiguration config,
java.lang.Object key,
java.lang.Object value) |
boolean |
stepsAreLocal()
Method jobsAreLocal returns true if all jobs are executed in-process as a single map and reduce task.
|
addListener, addPlannerProperties, addSessionProperties, addStepListener, areSinksStale, areSourcesNewer, cleanup, complete, createConfig, createFlowCanonicalHash, createFlowStats, createFlowThread, createPrepareFlowStats, deleteCheckpointsIfNotUpdate, deleteCheckpointsIfReplace, deleteSinks, deleteSinksIfNotUpdate, deleteSinksIfReplace, deleteTrapsIfNotUpdate, deleteTrapsIfReplace, fireOnCompleted, fireOnStarting, fireOnStopping, fireOnThrowable, fireOnThrowable, getCascadeID, getCascadingServices, getCheckpointNames, getCheckpoints, getCheckpointsCollection, getClassPath, getClientState, getEligibleJobsSize, getFieldsFor, getFlowCanonicalHash, getFlowDescriptor, getFlowElementGraph, getFlowSession, getFlowSkipStrategy, getFlowStats, getFlowStepGraph, getFlowSteps, getFlowStepStrategy, getHolder, getID, getJobMapCallables, getName, getPlannerInfo, getPlatformInfo, getRunID, getSink, getSink, getSinkModified, getSinkNames, getSinks, getSinksCollection, getSource, getSourceNames, getSources, getSourcesCollection, getSpawnStrategy, getStats, getSubmitPriority, getTags, getTrapNames, getTraps, getTrapsCollection, handleExecutorShutdown, hasListeners, hasStepListeners, initialize, initializeChildStats, initializeNewJobsMap, initSteps, internalStopAllJobs, isDebugEnabled, isInfoEnabled, isJobsMapInitialized, isSkipFlow, isStopJobsOnExit, logDebug, logError, logError, logInfo, logWarn, logWarn, logWarn, openSink, openSink, openSource, openSource, openTapForRead, openTapForWrite, openTrap, openTrap, prepare, presentSinkFields, presentSourceFields, registerShutdownHook, removeListener, removeListeners, removeStepListener, resourceExists, retrieveSinkFields, retrieveSourceFields, setCascade, setCheckpoints, setFlowElementGraph, setFlowSkipStrategy, setFlowStepGraph, setFlowStepStrategy, setName, setPlannerInfo, setSinks, setSources, setSpawnStrategy, setSubmitPriority, setTraps, spawnSteps, start, stop, toString, updateJobsMap, updateSchemes, writeDOT, writeStepsDOT
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSinkEntryStream, getSinkEntryStream, getSinkEntryStream, getSinkEntryStream, getSinkEntryStreamCopy, getSinkEntryStreamCopy, getSinkEntryStreamCopy, getSinkEntryStreamCopy, getSinkTupleStream, getSinkTupleStream, getSinkTupleStream, getSinkTupleStream, getSinkTupleStreamCopy, getSinkTupleStreamCopy, getSinkTupleStreamCopy, getSinkTupleStreamCopy, getSourceEntryStream, getSourceEntryStream, getSourceEntryStreamCopy, getSourceEntryStreamCopy, getSourceTupleStream, getSourceTupleStream, getSourceTupleStreamCopy, getSourceTupleStreamCopy
protected Hadoop2TezFlow()
public Hadoop2TezFlow(PlatformInfo platformInfo, java.util.Map<java.lang.Object,java.lang.Object> properties, org.apache.tez.dag.api.TezConfiguration flowConf, FlowDef flowDef)
protected void initFromProperties(java.util.Map<java.lang.Object,java.lang.Object> properties)
initFromProperties
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
protected void initConfig(java.util.Map<java.lang.Object,java.lang.Object> properties, org.apache.tez.dag.api.TezConfiguration parentConfig)
BaseFlow
initConfig
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
properties
- of type MapparentConfig
- of type Configpublic java.lang.String getFlowStagingPath()
protected void setConfigProperty(org.apache.tez.dag.api.TezConfiguration config, java.lang.Object key, java.lang.Object value)
setConfigProperty
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
protected org.apache.tez.dag.api.TezConfiguration newConfig(org.apache.tez.dag.api.TezConfiguration defaultConfig)
@ProcessConfiguration public org.apache.tez.dag.api.TezConfiguration getConfig()
Flow
Any changes to this object will not be reflected in child steps. See FlowConnector
for setting
default properties visible to children. Or see FlowStepStrategy
for setting properties on
individual steps before they are executed.
public org.apache.tez.dag.api.TezConfiguration getConfigCopy()
Flow
public java.util.Map<java.lang.Object,java.lang.Object> getConfigAsProperties()
Flow
Map
of
key value pairs.public java.lang.String getProperty(java.lang.String key)
key
- of type Stringpublic FlowProcess<org.apache.tez.dag.api.TezConfiguration> getFlowProcess()
public boolean isPreserveTemporaryFiles()
protected void internalStart()
internalStart
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
public boolean stepsAreLocal()
Flow
protected void internalClean(boolean stop)
internalClean
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
protected void internalShutdown()
internalShutdown
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
protected int getMaxNumParallelSteps()
getMaxNumParallelSteps
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
protected long getTotalSliceCPUMilliSeconds()
getTotalSliceCPUMilliSeconds
in class BaseFlow<org.apache.tez.dag.api.TezConfiguration>
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.