HDFS directory text segment merger