made hdfs map generic