add pagination of HDFS