This may be weird, but I could have sworn that the script is called repeatedly. One simple test would be to change the rack aware script and print a message out when the script is called. Then change the script and see if it catches the change without restarting the cluster.
-Mike > From: [email protected] > Date: Sat, 26 Mar 2011 15:50:58 -0700 > Subject: Re: changing node's rack > To: [email protected] > CC: [email protected] > > I think that the namenode remembers the rack. Restarting the datanode > doesn't make it forget. > > On Sat, Mar 26, 2011 at 7:34 AM, Rita <[email protected]> wrote: > > > What is the best way to change the rack of a node? > > > > I have tried the following: Killed the datanode process. Changed the > > rackmap > > file so the node && and ip address entry reflect the new rack and I do a > > '-refreshNodes'. Restarted the datanode. But it seems the datanode is keep > > getting register to the old rack. > > > > -- > > --- Get your facts first, then you can distort them as you please.-- > >
