Hadoop - Performance Tuning
Find the mistake in this code snippet for merging small files into a SequenceFile:
SequenceFile.Writer writer = SequenceFile.createWriter(conf, path, keyClass, valueClass);
for (File file : files) {
writer.append(file.getName(), file);
}
writer.close();