i am very new to M/R programs..i have a file in HDFS with data in this structure
EmpId,EmpName,Dept,Salary,
1231,userName1,Dept1,5000
1232,userName2,Dept2,6000
1233,userName3,Dept3,7000
.
.
.........................
now i want to find the name of the employee who earns highest salary
i have written a map reduce to find the highest salary.in my mapper class i have emitted the output like this
output.collect("max value",salary of the emplyee);
In the reducer i found out the max value of the key "max value".now i want to use this value in a mapper and find the names of the employee who earns maximum salary..how can i send the reducer output to a mapper as input?is this a good approach to accomplish my task?any other suggestions?