What was the state of the host after the maintenance? Just asking because if the directory structure was left untouched (e.g. the name node directory) then you may be able to start the agent on that host and start namenode and other mapped components.
I am trying to figure out if there is a easier way than re-installing namenode. If you need to reinstall NN then you may install it with a different path and then modify the config to point to the original path afterwards. Ensure that all services are stopped before this. You will need to modify the hdfs-site config using the API or UI and then install NN. Start and stop the NN. After that use the UI or API to change the path and then start NN. I have not personally tried it - so ensure that you have backed up namenode directory and data directory as needed. Usually, a gmond (Ganglia Monitor) instance is also deployed on the host. So you will need to install that as well. On Fri, May 9, 2014 at 3:43 PM, Anoop Rajendra <[email protected]>wrote: > Hey, > > I have deployed HDP 2.1.2 with Ambari 1.5.1 on a small test cluster of 7 > nodes. > > The host that was running the namenode server had to undergo > maintenance today, and I need to redeploy the namenode software on > that system. > > After the host came back I tried to install the namenode software > using the API, but I got the error, > > ERROR: Namenode directory(s) is non empty. Will not format the > namenode. List of non-empty namenode dirs > /state/partition1/hadoop/hdfs/namenode > > I didn't want to erase the namenode directory in case I could use the > information on it. > > Is this possible? > > -Anoop > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
