org.apache.hcatalog.har
Class HarOutputCommitterPostProcessor
java.lang.Object
org.apache.hcatalog.har.HarOutputCommitterPostProcessor
public class HarOutputCommitterPostProcessor
- extends java.lang.Object
Method Summary |
void |
exec(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.hive.metastore.api.Partition partition,
org.apache.hadoop.fs.Path partPath)
|
java.lang.String |
getParentFSPath(org.apache.hadoop.fs.Path ptnPath)
|
java.lang.String |
getProcessedLocation(org.apache.hadoop.fs.Path ptnPath)
|
java.lang.String |
harFile(org.apache.hadoop.fs.Path ptnPath)
|
boolean |
isEnabled()
|
static void |
makeHar(org.apache.hadoop.mapreduce.JobContext context,
java.lang.String dir,
java.lang.String harFile)
Creates a har file from the contents of a given directory, using that as root. |
void |
setEnabled(boolean enabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HarOutputCommitterPostProcessor
public HarOutputCommitterPostProcessor()
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
exec
public void exec(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hadoop.hive.metastore.api.Partition partition,
org.apache.hadoop.fs.Path partPath)
throws java.io.IOException
- Throws:
java.io.IOException
harFile
public java.lang.String harFile(org.apache.hadoop.fs.Path ptnPath)
throws java.io.IOException
- Throws:
java.io.IOException
getParentFSPath
public java.lang.String getParentFSPath(org.apache.hadoop.fs.Path ptnPath)
throws java.io.IOException
- Throws:
java.io.IOException
getProcessedLocation
public java.lang.String getProcessedLocation(org.apache.hadoop.fs.Path ptnPath)
throws java.io.IOException
- Throws:
java.io.IOException
makeHar
public static void makeHar(org.apache.hadoop.mapreduce.JobContext context,
java.lang.String dir,
java.lang.String harFile)
throws java.io.IOException
- Creates a har file from the contents of a given directory, using that as root.
- Parameters:
dir
- Directory to archiveharFile
- The HAR file to create
- Throws:
java.io.IOException