Just importing the packages won't help. You need to add the necessary jars to your project as well. You can do that by following these steps :
Click on your Project -> Properties -> Java Build Path -> Add External JARs
This will open the selection window. Move to your HADOOP_HOME and add the hadoop-core-1.1.2.jar and all the required jars from HADOOP_HOME/lib folder to your project.
Alternatively, create your project as a MapReduce Project instead of as a Java Project.
HTH