public static Writer createWALWriter(final FileSystem fs, final Path path,
    final Configuration configuration) throws IOException {
    return FSHLogProvider.createWriter(configuration, fs, path, false);
  }
If you already have a WALFactory, you should favor the instance method. Uses defaults.
@return a writer that won't overwrite files. Caller must close.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALFactory.java