public static Configuration buildConfiguration(final String hdfsUri) {
        final Configuration conf = new Configuration();
        conf.set("fs.defaultFS", hdfsUri);
        conf.set("fs.automatic.close", "true");
        conf.set("fs.hdfs.impl", DistributedFileSystem.class.getName());
        // conf.set("fs.file.impl",
        // org.apache.hadoop.fs.LocalFileSystem.class.getName());
        return conf;
    }
Creates an output stream for a file on an Hadoop Distributed File System
<p>
TODO Need to add in proper security so it can connect to a secured
(kerberos?) cluster
stroom-pipeline/src/main/java/stroom/pipeline/writer/HDFSFileAppender.java