Use dfsadmin -safemode wait to wait for HDFS availability