@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, start
public 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.OutputFrameworkInterface
initialize
in class MROutput
IOException
InterruptedException
public static org.apache.tez.mapreduce.output.MROutput.MROutputConfigBuilder createConfigBuilder(org.apache.hadoop.conf.Configuration conf, Class<?> outputFormat, String outputPath, boolean useLazyOutputFormat)
MROutput.MROutputConfigBuilder
conf
- Configuration for the MROutput
outputFormat
- FileInputFormat derived classoutputPath
- Output pathMROutput.MROutputConfigBuilder
public org.apache.tez.runtime.library.api.KeyValueWriterWithBasePath getWriter() throws IOException
MROutput
getWriter
in interface org.apache.tez.runtime.api.Output
getWriter
in class MROutput
IOException
public void flush() throws IOException
flush
in class MROutput
IOException
Copyright © 2024 Apache Software Foundation. All rights reserved.