wrote datanode/namenode main