private String printConf() {
    try {
      StringWriter stringWriter = new StringWriter();
      conf.writeXml(stringWriter);
      stringWriter.close();
      return stringWriter.toString().replace("\n", "");
    } catch (IOException e) {
      LOG.error("error while converting conf to xml : ", e);
      return "";
    }
  }
Build the HDFS configuration
@return configured HDFS Configuration object
@throws HdfsApiException if configuration parsing failed
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java