public Configuration buildConfig() throws HdfsApiException {
    copyPropertiesBySite(CORE_SITE);
    copyPropertiesBySite(HDFS_SITE);
    parseProperties();
    setAuthParams(buildAuthenticationConfig());

    String umask = getViewProperty(UMASK_INSTANCE_PROPERTY);
    if (umask != null && !umask.isEmpty()) conf.set(UMASK_CLUSTER_PROPERTY, umask);

    if(null != this.customProperties){
      copyProperties(this.customProperties);
    }

    if(LOG.isDebugEnabled()){
      LOG.debug("final conf : {}", printConf());
    }

    return conf;
  }
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