write info to hdfs