How to move the HDFS namenode to a new host
So I finally managed to get it moved.
- Set the running HDFS into safemode:bin/hadoop dfsadmin -safemode enter
- TarBall the complete directory under dfs.name.dir
- Move the TarBall to the new namenode and extract the contents.
- change the core-site.xml and the master to the hostname of the new node
- start and leave the safemode:bin/hadoop dfsadmin -safemode leave