SequenceFile.Writer seqFileWriter = SequenceFile.createWriter(
intStringSeq.getFileSystem(hiveConf), hiveConf, intStringSeq,
NullWritable.class, BytesWritable.class);
ByteArrayOutputStream out = new ByteArrayOutputStream();
TIOStreamTransport transport = new TIOStreamTransport(out);
TBinaryProtocol protocol = new TBinaryProtocol(transport);
for (int i = 1; i <= 100; i++) {
if (i % 10 == 0) {
seqFileWriter.append(NullWritable.get(), new BytesWritable("bad record".getBytes()));