Java Interface for writing and reading data on hdfs