code: public SequenceFile.Writer createSequenceFile(String newPath) throws IOException {
          if (codec != null) {
              return SequenceFile.createWriter(
                      fs, conf, new Path(newPath),
                      Text.class, MessageWritable.class,
                      SequenceFile.CompressionType.BLOCK, codec);
          } else {
              return SequenceFile.createWriter(
                      fs, conf, new Path(newPath),
                      Text.class, MessageWritable.class,
                      SequenceFile.CompressionType.NONE, codec);
          }
      }
docs: Create a new sequence file
  
  @param newPath
  @return
  @throws java.io.IOException