public class SinkArchiver extends Object implements CHUKWA_CONSTANT
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.fs.PathFilter |
DATA_SINK_FILTER |
ARCHIVES_IN_ERROR_DIR_NAME, ARCHIVES_MR_INPUT_DIR_NAME, ARCHIVES_MR_OUTPUT_DIR_NAME, ARCHIVES_PROCESSING_DIR_NAME, CHUKWA_ARCHIVE_DIR_FIELD, CHUKWA_DATA_SINK_DIR_FIELD, CHUKWA_DEMUX_REDUCER_COUNT_FIELD, CHUKWA_NAGIOS_HOST_FIELD, CHUKWA_NAGIOS_PORT_FIELD, CHUKWA_POST_PROCESS_DIR_FIELD, CHUKWA_POSTPROCESS_IN_ERROR_DIR_FIELD, CHUKWA_REPORTING_HOST_FIELD, CHUKWA_ROOT_DIR_FIELD, CHUKWA_ROOT_REPOS_DIR_FIELD, DEFAULT_CHUKWA_DATASINK_DIR_NAME, DEFAULT_CHUKWA_LOGS_DIR_NAME, DEFAULT_CHUKWA_POSTPROCESS_DIR_NAME, DEFAULT_CHUKWA_ROOT_DIR_NAME, DEFAULT_DEMUX_IN_ERROR_DIR_NAME, DEFAULT_DEMUX_MR_INPUT_DIR_NAME, DEFAULT_DEMUX_MR_OUTPUT_DIR_NAME, DEFAULT_DEMUX_PROCESSING_DIR_NAME, DEFAULT_FINAL_ARCHIVES, DEFAULT_POSTPROCESS_IN_ERROR_DIR_NAME, DEFAULT_REPOS_DIR_NAME, POST_DEMUX_DATA_LOADER, WRITER_HDFS_FILESYSTEM_FIELD
Constructor and Description |
---|
SinkArchiver() |
Modifier and Type | Method and Description |
---|---|
void |
exec(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf) |
static void |
main(String[] args) |
void |
promoteAndMerge(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dest)
Merges the contents of src into dest.
|
int |
runMapRedJob(org.apache.hadoop.conf.Configuration conf,
String in,
String out) |
public static void main(String[] args)
public void exec(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)
public int runMapRedJob(org.apache.hadoop.conf.Configuration conf, String in, String out) throws Exception
Exception
public void promoteAndMerge(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path src, org.apache.hadoop.fs.Path dest) throws IOException
fs
- the filesystem in questionsrc
- a file or directory to merge into destdest
- a directory to merge intoIOException
Copyright © ${year} The Apache Software Foundation