could you provide some additional details? screenshots of the Ambari dashboard, HDFS service page, host list, etc.?
Check if ambari agent is running in that datanode? you can go to ambari-host and check the host status of datanode2 .