I have a running Hadoop/HBase cluster. When I want to change hadoop parameters without stopping the cluster, can I use org.apache.hadoop.conf.Configuration API?
I wrote following java source, but it didn't do anything. ------------------------- import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; public class ChangeConf { public static void main(String[] args) throws Exception { Configuration conf = new Configuration(); conf.addResource(new Path("/hadoop-0.18.1/conf/hadoop-default.xml")); conf.addResource(new Path("/hadoop-0.18.1/conf/hadoop-site.xml")); conf.setStrings("dfs.data.dir", "/hadoop-data/data.dir","/data4/hadoop-data"); return; } } ---------------------------- Actually, I know I can use "decommission" to add more directory without stopping whole cluster. But I'm very confused "org.apache.hadoop.conf.Configuration" API. Could anyone please let me know clearly?