@InterfaceAudience.Public public class MultiMROutput extends MROutput
MultiMROutput is an Output which allows key/values pairs
to be written by a processor to different output files.
It is compatible with all standard Apache Hadoop MapReduce
OutputFormat implementations.committer, flushed, jobConf, outputRecordCounter| Constructor and Description |
|---|
MultiMROutput(org.apache.tez.runtime.api.OutputContext outputContext,
int numPhysicalOutputs) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.tez.mapreduce.output.MROutput.MROutputConfigBuilder |
createConfigBuilder(org.apache.hadoop.conf.Configuration conf,
Class<?> outputFormat,
String outputPath,
boolean useLazyOutputFormat)
Create an
MROutput.MROutputConfigBuilder |
void |
flush()
Call this in the processor before finishing to ensure outputs that
outputs have been flushed.
|
org.apache.tez.runtime.library.api.KeyValueWriterWithBasePath |
getWriter()
Get a key value write to write Map Reduce compatible output
|
List<org.apache.tez.runtime.api.Event> |
initialize() |
abort, close, commit, createConfigBuilder, createConfigBuilder, createConfigBuilder, getOutputFileNamePrefix, getOutputName, handleEvents, initCommitter, initializeBase, isCommitRequired, startpublic MultiMROutput(org.apache.tez.runtime.api.OutputContext outputContext,
int numPhysicalOutputs)
public List<org.apache.tez.runtime.api.Event> initialize() throws IOException, InterruptedException
initialize in interface org.apache.tez.runtime.api.OutputFrameworkInterfaceinitialize in class MROutputIOExceptionInterruptedExceptionpublic static org.apache.tez.mapreduce.output.MROutput.MROutputConfigBuilder createConfigBuilder(org.apache.hadoop.conf.Configuration conf,
Class<?> outputFormat,
String outputPath,
boolean useLazyOutputFormat)
MROutput.MROutputConfigBuilderconf - Configuration for the MROutputoutputFormat - FileInputFormat derived classoutputPath - Output pathMROutput.MROutputConfigBuilderpublic org.apache.tez.runtime.library.api.KeyValueWriterWithBasePath getWriter()
throws IOException
MROutputgetWriter in interface org.apache.tez.runtime.api.OutputgetWriter in class MROutputIOExceptionpublic void flush()
throws IOException
flush in class MROutputIOExceptionCopyright © 2021 Apache Software Foundation. All rights reserved.