Let's say I have one input file named input.txt and the content of the file is given below
Hadoop is good Hortonworks makes the life easy Hadoop is a framework
This input.txt contains only 3 lines . Now I need the count of the word "Hortonworks" and line number of occurrence in the input file . For this input file the count of "Hortonworks" is 1 and it is in the line number 2. I can find it running separate MapReduce job for each query. Can we find both queries output in one MapReduce Job ? I do not want to run two separate job for this purpose. It will be IO heat for billions of data.