conf.setCompressMapOutput(false);
Path outPath = new Path(_offsetsDir + Path.SEPARATOR + "1.dat");
FileSystem fs = outPath.getFileSystem(conf);
if (fs.exists(outPath)) fs.delete(outPath);
KafkaETLRequest request =
new KafkaETLRequest(_topic, "tcp://" + formatAddress(_uri.getHost(), _uri.getPort()), 0);
System.out.println("Dump " + request.toString() + " to " + outPath.toUri().toString());
byte[] bytes = request.toString().getBytes("UTF-8");
KafkaETLKey dummyKey = new KafkaETLKey();
SequenceFile.setCompressionType(conf, SequenceFile.CompressionType.NONE);
SequenceFile.Writer writer = SequenceFile.createWriter(fs, conf, outPath,
KafkaETLKey.class, BytesWritable.class);
writer.append(dummyKey, new BytesWritable(bytes));