write to hdfs