add hdfs_admin macro and restart_namenode state