Moved HDFS functions to permafrost.