Abstract the interface to access hdfs, and implement a restful way.