Configuring Eclipse to work with Hadoop
Setting the Workspace and its Backup
- Rename the folder workspace (/home/acostudent/workspace) to workspace2 (/home/acostudent/workspace2)
- Create a new workspace folder (/home/acostudent/workspace)
- Open eclipse
- Change workspace in eclipse (File->Switch_Worspace->Select_File), select the /home/acostudent/workspace folder
-
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
- Go to Window > Preferences
- Select "Java > Installed JREs" on left side, click on "Add.."
- Choose "Standard VM", and click click Next
- 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
- Check the box next to jdk1.6.0_37 (or current distribution)
- Select "Hadoop Map/Reduce" on left side
- Set the Hadoop installation directory by clicking on Browse and navigating to "/home/acostudent/bin/hadoop-1.0.4/"
- click ok and/or Apply
- Select "Java > Compiler" on left side
- Set "Compiler compliance level" to 1.6
- Click Apply and/or OK
- 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.
|