try {
for (Pair<LogFileKey,LogFileValue> entry : kv)
writer.append(entry.getFirst(), entry.getSecond());
} finally {
writer.close();
span.stop();
}
}
private void copyLog(final String localLog, final String fullyQualifiedFileName) throws IOException {
Path dest = new Path(fullyQualifiedFileName + ".copy");