writer.printf("%d\t%d\n", k, v);
}
writer.close();
} else {
CustomWritable key = new CustomWritable();
CustomWritable value = new CustomWritable();
Writer writer = SequenceFile.createWriter(getFileSystem(), getFileSystem().getConf(), path, CustomWritable.class,
CustomWritable.class, CompressionType.BLOCK, defaultCodec);
for (int k = 1, v = 100 * fileNum + 1; k <= fileNum; k++, v++) {
key.set(k);
value.set(v);
writer.append(key, value);
}
writer.close();