[Fix bug 1145047] resourcemanager should wait until HDFS is ready because YARN depends on HDFS