Just to be clear, you want to persist a configuration change to your entire
cluster without bringing it down, and you're hoping to use the Configuration
API to do so.  Did I get your question correct?

I don't know of a way to do this without restarting the cluster, because I'm
pretty sure Configuration changes will only affect the current job.  Does
anyone else have a suggestion?

Alex

On Wed, Oct 22, 2008 at 12:44 AM, Jinyeon Lee <[EMAIL PROTECTED]> wrote:

> 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?
>

Reply via email to