Hadoop read and write file flow detailed