Refactor namenode and datanodes to add requirements to conf files.