public class StreamJobFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<org.apache.hadoop.mapreduce.Job>, org.springframework.beans.factory.BeanNameAware
JobFactoryBean which is Java-specific, this factory is suitable for streaming scenarios (such as
 invoking Ruby/Python scripts or command-line scripts).| Constructor and Description | 
|---|
| StreamJobFactoryBean() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| org.apache.hadoop.mapreduce.Job | getObject() | 
| java.lang.Class<?> | getObjectType() | 
| boolean | isSingleton() | 
| void | setArchives(org.springframework.core.io.Resource... archives)Sets the archives to be unarchive to the map reduce cluster. | 
| void | setBeanName(java.lang.String name) | 
| void | setCmdEnv(java.util.Properties cmdEnv)Sets the environment for the commands to be executed. | 
| void | setCombiner(java.lang.String combiner)Sets the job combiner. | 
| void | setConfiguration(org.apache.hadoop.conf.Configuration configuration)Sets the Hadoop configuration to use. | 
| void | setFiles(org.springframework.core.io.Resource... files)Sets the files to be copied to the map reduce cluster. | 
| void | setInputFormat(java.lang.String inputFormat)Sets the job input format. | 
| void | setInputPath(java.lang.String... input)Sets the job input paths. | 
| void | setLibs(org.springframework.core.io.Resource... libJars)Sets the jar files to include in the classpath. | 
| void | setMapper(java.lang.String mapper)Sets the job mapper. | 
| void | setNumberReducers(java.lang.Integer numReduceTasks)Sets the job number of reducer tasks. | 
| void | setOutputFormat(java.lang.String outputFormat)Sets the job output format. | 
| void | setOutputPath(java.lang.String output)Sets the job output paths. | 
| void | setPartitioner(java.lang.String partitioner)Sets the job partitioner. | 
| void | setProperties(java.util.Properties properties)Sets the configuration properties to use. | 
| void | setReducer(java.lang.String reducer)Sets the job reducer. | 
| void | setUser(java.lang.String user)Sets the user impersonation (optional) for running this job. | 
public void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic org.apache.hadoop.mapreduce.Job getObject()
                                          throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.mapreduce.Job>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.mapreduce.Job>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.hadoop.mapreduce.Job>public void afterPropertiesSet()
                        throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setInputPath(java.lang.String... input)
input - The input to set.public void setOutputPath(java.lang.String output)
output - The output to set.public void setMapper(java.lang.String mapper)
mapper - The mapper to set.public void setReducer(java.lang.String reducer)
reducer - The reducer to set.public void setCombiner(java.lang.String combiner)
combiner - The combiner to set.public void setInputFormat(java.lang.String inputFormat)
inputFormat - The inputFormat to set.public void setOutputFormat(java.lang.String outputFormat)
outputFormat - The outputFormat to set.public void setPartitioner(java.lang.String partitioner)
partitioner - The partitioner to set.public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
configuration - The configuration to set.public void setCmdEnv(java.util.Properties cmdEnv)
cmdEnv - The environment command/property to set.public void setNumberReducers(java.lang.Integer numReduceTasks)
numReduceTasks - The numReduceTasks to set.public void setProperties(java.util.Properties properties)
properties - The properties to set.public void setLibs(org.springframework.core.io.Resource... libJars)
mydir/*.jar), which the
 Spring container will automatically resolve.libJars - The jar files to include in the classpath.public void setFiles(org.springframework.core.io.Resource... files)
mydir/*.txt), which the
 Spring container will automatically resolve.files - The files to copy.public void setArchives(org.springframework.core.io.Resource... archives)
mydir/*.zip), which the
 Spring container will automatically resolve.archives - The archives to unarchive on the compute machines.public void setUser(java.lang.String user)
user - user/group information