public class HadoopRenameFileCommitter extends Object implements HadoopFileCommitter
| Constructor and Description |
|---|
HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath) |
HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath,
org.apache.hadoop.fs.Path inProgressPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits the in-progress file to the target path.
|
void |
commitAfterRecovery()
Re-commits the in-progress file to the target path after fail-over.
|
org.apache.hadoop.fs.Path |
getTargetFilePath()
Gets the target path to commit to.
|
org.apache.hadoop.fs.Path |
getTempFilePath()
Gets the path of the intermediate file to commit.
|
void |
preCommit()
Prepares the intermediates file for committing.
|
public HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath)
throws IOException
IOExceptionpublic HadoopRenameFileCommitter(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path targetFilePath,
org.apache.hadoop.fs.Path inProgressPath)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path getTargetFilePath()
HadoopFileCommittergetTargetFilePath in interface HadoopFileCommitterpublic org.apache.hadoop.fs.Path getTempFilePath()
HadoopFileCommittergetTempFilePath in interface HadoopFileCommitterpublic void preCommit()
HadoopFileCommitterpreCommit in interface HadoopFileCommitterpublic void commit()
throws IOException
HadoopFileCommittercommit in interface HadoopFileCommitterIOExceptionpublic void commitAfterRecovery()
throws IOException
HadoopFileCommittercommitAfterRecovery in interface HadoopFileCommitterIOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.