public class Hadoop2TezFlow extends BaseFlow<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,
TezConfiguration flowConf,
FlowDef flowDef) |
Modifier and Type | Method and Description |
---|---|
TezConfiguration |
getConfig() |
java.util.Map<java.lang.Object,java.lang.Object> |
getConfigAsProperties() |
TezConfiguration |
getConfigCopy() |
FlowProcess<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,
TezConfiguration parentConfig) |
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 TezConfiguration |
newConfig(TezConfiguration defaultConfig) |
protected void |
setConfigProperty(TezConfiguration config,
java.lang.Object key,
java.lang.Object value) |
boolean |
stepsAreLocal() |
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, ifStoppingBlockUntilComplete, 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, TezConfiguration flowConf, FlowDef flowDef)
protected void initFromProperties(java.util.Map<java.lang.Object,java.lang.Object> properties)
initFromProperties
in class BaseFlow<TezConfiguration>
protected void initConfig(java.util.Map<java.lang.Object,java.lang.Object> properties, TezConfiguration parentConfig)
initConfig
in class BaseFlow<TezConfiguration>
public java.lang.String getFlowStagingPath()
protected void setConfigProperty(TezConfiguration config, java.lang.Object key, java.lang.Object value)
setConfigProperty
in class BaseFlow<TezConfiguration>
protected TezConfiguration newConfig(TezConfiguration defaultConfig)
newConfig
in class BaseFlow<TezConfiguration>
@ProcessConfiguration public TezConfiguration getConfig()
public TezConfiguration getConfigCopy()
public java.util.Map<java.lang.Object,java.lang.Object> getConfigAsProperties()
public java.lang.String getProperty(java.lang.String key)
key
- of type Stringpublic FlowProcess<TezConfiguration> getFlowProcess()
public boolean isPreserveTemporaryFiles()
protected void internalStart()
internalStart
in class BaseFlow<TezConfiguration>
public boolean stepsAreLocal()
protected void internalClean(boolean stop)
internalClean
in class BaseFlow<TezConfiguration>
protected void internalShutdown()
internalShutdown
in class BaseFlow<TezConfiguration>
protected int getMaxNumParallelSteps()
getMaxNumParallelSteps
in class BaseFlow<TezConfiguration>
protected long getTotalSliceCPUMilliSeconds()
getTotalSliceCPUMilliSeconds
in class BaseFlow<TezConfiguration>
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.