|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.flow.BaseFlow<org.apache.hadoop.mapred.JobConf> cascading.flow.hadoop.HadoopFlow
public class HadoopFlow
Class HadoopFlow is the Apache Hadoop specific implementation of a Flow
.
HadoopFlowConnector
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.
HadoopFlowConnector
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cascading.flow.BaseFlow |
---|
BaseFlow.FlowHolder |
Field Summary |
---|
Fields inherited from class cascading.flow.BaseFlow |
---|
flowStats, sinks, sources, stop, stopJobsOnExit, thread |
Fields inherited from interface cascading.flow.Flow |
---|
CASCADING_FLOW_ID |
Constructor Summary | |
---|---|
protected |
HadoopFlow()
|
|
HadoopFlow(cascading.flow.planner.PlatformInfo platformInfo,
Map<Object,Object> properties,
org.apache.hadoop.mapred.JobConf jobConf,
FlowDef flowDef)
|
protected |
HadoopFlow(cascading.flow.planner.PlatformInfo platformInfo,
Map<Object,Object> properties,
org.apache.hadoop.mapred.JobConf jobConf,
String name,
Map<String,String> flowDescriptor)
|
Method Summary | |
---|---|
org.apache.hadoop.mapred.JobConf |
getConfig()
Method getConfig returns the internal configuration object. |
Map<Object,Object> |
getConfigAsProperties()
Method getConfiAsProperties converts the internal configuration object into a Map of
key value pairs. |
org.apache.hadoop.mapred.JobConf |
getConfigCopy()
Method getConfigCopy returns a copy of the internal configuration object. |
FlowProcess<org.apache.hadoop.mapred.JobConf> |
getFlowProcess()
|
protected int |
getMaxNumParallelSteps()
|
String |
getProperty(String key)
Method getProperty returns the value associated with the given key from the underlying properties system. |
protected void |
initConfig(Map<Object,Object> properties,
org.apache.hadoop.mapred.JobConf parentConfig)
This method creates a new internal Config with the parentConfig as defaults using the properties to override the defaults. |
protected void |
initFromProperties(Map<Object,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.hadoop.mapred.JobConf |
newConfig(org.apache.hadoop.mapred.JobConf defaultConfig)
|
protected void |
setConfigProperty(org.apache.hadoop.mapred.JobConf config,
Object key,
Object value)
|
boolean |
stepsAreLocal()
Method jobsAreLocal returns true if all jobs are executed in-process as a single map and reduce task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected HadoopFlow()
protected HadoopFlow(cascading.flow.planner.PlatformInfo platformInfo, Map<Object,Object> properties, org.apache.hadoop.mapred.JobConf jobConf, String name, Map<String,String> flowDescriptor)
public HadoopFlow(cascading.flow.planner.PlatformInfo platformInfo, Map<Object,Object> properties, org.apache.hadoop.mapred.JobConf jobConf, FlowDef flowDef)
Method Detail |
---|
protected void initFromProperties(Map<Object,Object> properties)
initFromProperties
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
protected void initConfig(Map<Object,Object> properties, org.apache.hadoop.mapred.JobConf parentConfig)
BaseFlow
initConfig
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
properties
- of type MapparentConfig
- of type Configprotected void setConfigProperty(org.apache.hadoop.mapred.JobConf config, Object key, Object value)
setConfigProperty
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
protected org.apache.hadoop.mapred.JobConf newConfig(org.apache.hadoop.mapred.JobConf defaultConfig)
newConfig
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
public org.apache.hadoop.mapred.JobConf getConfig()
Flow
FlowConnector
for setting
default properties visible to children. Or see FlowStepStrategy
for setting properties on
individual steps before they are executed.
public org.apache.hadoop.mapred.JobConf getConfigCopy()
Flow
public Map<Object,Object> getConfigAsProperties()
Flow
Map
of
key value pairs.
public String getProperty(String key)
key
- of type String
public FlowProcess<org.apache.hadoop.mapred.JobConf> getFlowProcess()
public boolean isPreserveTemporaryFiles()
protected void internalStart()
internalStart
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
public boolean stepsAreLocal()
Flow
protected void internalClean(boolean stop)
internalClean
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
protected void internalShutdown()
internalShutdown
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
protected int getMaxNumParallelSteps()
getMaxNumParallelSteps
in class BaseFlow<org.apache.hadoop.mapred.JobConf>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |