Add hadoop and hdfs utility functions