Write checkpoint to hdfs