writing text to hdfs