1.Configuration
class="java">package com.mapreduce.test1; import org.apache.hadoop.conf.Configuration; public class Test1 { public static void main(String[] args) { Configuration conf = new Configuration(); conf.addResource("config-default.xml"); conf.addResource("config-site.xml"); System.out.println(conf.get("hadoop.tmp.dir")); System.out.println(conf.get("height")); } }
?多个配置文件顺序加进来,后面覆盖前面属性,但不能覆盖final为true的属性
?