changes to Cat/Put functions for streaming data in/out of hdfs