write message into hdfs