Try to write to HDFS