@Override
    public void close(TaskAttemptContext context) throws IOException, InterruptedException {
      writer.close();
    }
Creates a new output file in WARC format, and returns a RecordWriter for writing to it.
hbase-it/src/test/java/org/apache/hadoop/hbase/test/util/warc/WARCOutputFormat.java