@Override
          public Void run() throws Exception {
            final FSDataOutputStream stream = hdfs.create(filePath, true);
            stream.write(content.getBytes());
            stream.close();
            return null;
          }
Write string to file with overwriting
@param filePath path to file
@param content new content of file
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsUtil.java