Path clusterPath = new Path(clusterPathStr, "*");
Collection<Path> result = new ArrayList<Path>();
// get all filtered file names in result list
FileSystem fs = clusterPath.getFileSystem(conf);
FileStatus[] matches = fs.listStatus(FileUtil.stat2Paths(fs.globStatus(clusterPath, FILTER)),FILTER);
for (FileStatus match : matches) {
result.add(fs.makeQualified(match.getPath()));
}