public interface PathTarget extends MapReduceTarget
Target.WriteMode
Modifier and Type | Method and Description |
---|---|
FileNamingScheme |
getFileNamingScheme()
Get the naming scheme to be used for outputs being written to an output
path.
|
org.apache.hadoop.fs.Path |
getPath() |
void |
handleOutputs(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path workingPath,
int index)
Handles moving the output data for this target from a temporary location on the
filesystem to its target path at the end of a MapReduce job.
|
configureForMapReduce
accept, asSourceTarget, getConverter, handleExisting, outputConf
org.apache.hadoop.fs.Path getPath()
FileNamingScheme getFileNamingScheme()
void handleOutputs(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path workingPath, int index) throws IOException
conf
- The job Configuration
workingPath
- The temp directory that contains the output of the jobindex
- The index of this target for jobs that write multiple output files to a single directoryIOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.