Initialize hdfs dirs and set proper permission after namenode is started and before jobtracker/resourcemanager is started