I am very new to Hadoop and was wondering how to search for a specified file name inside HDFS using MapReduce? Let's say that I have thousands of terabytes of imaged-map data named by their latitude/longitude coordinates. Provided a given lat/long coordinate, how would I quickly find that file using MapReduce?
I searched around and found that one way was to pipe it to grep:
hdfs dfs -ls -R / | grep [search_term]
but this would be very slow for many files of big data.