add synchronization to hdfs storage script