func main() {

	conf, _ := hadoop_conf.NewConfigurationResources([]string{yarn_conf.YARN_DEFAULT, yarn_conf.YARN_SITE})

	fsName, _ := conf.Get("fs.default.name", "XXX")
	log.Println("fs.default.name = ", fsName)

	cores, _ := conf.GetInt("yarn.nodemanager.resource.cpu-cores", -1)
	log.Println("yarn.nodemanager.resource.cpu-cores = ", cores)
}
func NewYarnConfiguration() (YarnConfiguration, error) {
	c, err := hadoop_conf.NewConfigurationResources([]string{YARN_DEFAULT, YARN_SITE})
	return &yarn_configuration{conf: c}, err
}