Configuring Eclipse to work with Hadoop

Setting the Workspace and its Backup

  1. Rename the folder workspace (/home/acostudent/workspace) to workspace2 (/home/acostudent/workspace2)
  2. Create a new workspace folder (/home/acostudent/workspace)
  3. Open eclipse
  4. Change workspace in eclipse (File->Switch_Worspace->Select_File), select the /home/acostudent/workspace folder
  5. To import the instructional java projects into eclipse, (File->Import->General->Existing_Projects_into_Workspace) and select /home/acostudent/workspace2 in the field "Select root directory". Check the option "Copy projects into workspace" and then choose finish

Configuring the Correct JRE Eclipse-wide

  1. Go to Window > Preferences
  2. Select "Java > Installed JREs" on left side, click on "Add.."
  3. Choose "Standard VM", and click click Next
  4. To set the JRE Home, browse to the root directory of the Java 6 jdk: "/home/acostudent/bin/jdk1.6.0_37", and Click Finish
  5. Check the box next to jdk1.6.0_37 (or current distribution)
  6. Select "Hadoop Map/Reduce" on left side
  7. Set the Hadoop installation directory by clicking on Browse and navigating to "/home/acostudent/bin/hadoop-1.0.4/"
  8. click ok and/or Apply
  9. Select "Java > Compiler" on left side
  10. Set "Compiler compliance level" to 1.6
  11. Click Apply and/or OK
  12. Close and relaunch Eclipse

Configuring the Correct JRE Project-Wide

Note that you must also configure the specific project to use the correct JRE also.