Writer writer = null;
Reader reader = null;
try {
short replication = (short) acuConf.getCount(Property.LOGGER_RECOVERY_FILE_REPLICATION);
writer = SequenceFile.createWriter(fs, fs.getConf(), dest, LogFileKey.class, LogFileValue.class, fs.getConf().getInt("io.file.buffer.size", 4096),
replication, fs.getDefaultBlockSize(), SequenceFile.CompressionType.BLOCK, new DefaultCodec(), null, new Metadata());
FileSystem local = TraceFileSystem.wrap(FileSystem.getLocal(fs.getConf()).getRaw());
reader = new SequenceFile.Reader(local, new Path(findLocalFilename(localLog)), fs.getConf());
while (reader.next(key, value)) {
writer.append(key, value);
}