In Eclipse you have to add the all the jars that are from hadoop.mapred.* packages. Please right click on the project -> properties ->Java Build path -> Libraries Tab -> Add external jars and add the following
/usr/lib/hadoop - add hadoop-annotations.jar,hadoop-auth.jar,hadoop-common.jar
/usr/lib/hadoop/client - Add all jars
/usr/lib/hadoop/lib - Add all jars.
Once these jars are added, Eclipse will recognize the MapReduce programs