Hadoop library functions