Changes to restart hdfs datanodes in a controlled fashion so that availability of hdfs is not impacted