reimplemented datanodes check based off yarn jmx style