Install Eclipse on Ubuntu12.10 and run the first MapReduce program WordCount on it. Download to download directory, tar-zxvfeclipse-java-juno-SR1-linux-gtk.ta
Install Eclipse on Ubuntu 12.10 and run the first MapReduce program WordCount on it.
First download eclipse from the official website, find eclipse for java, linux eclipse-java-juno-sr1-linux-gtk.tar.gz
Tar-zxvf eclipse-java-juno-SR1-linux-gtk.tar.gz-C .. the directory you want to decompress
Then, add the decompressed directory to the PATH, and enter eclipse on the terminal to start.
The next step is to install the Hadoop for eclipse plug-in. Check whether there is an eclipse-plugin directory under the contrib directory under your hadoop installation directory. If there is a contrib directory, it is the corresponding plug-in. If not, compile it by yourself (I will not compile it now). The source code is in the hadoop directory
Src/contrib/eclipse-plugin. My hadoop version is 1.1.0, if your and my version are the same, get plug-in hadoop-eclipse-plugin-1.1.0.jar here: http://pan.baidu.com/share/link? Consumer id = 434048 & uk = 487907638
After a plug-in is available, copy it to the plugins under the eclipse installation directory. Restart hadoop. Note that sometimes eclipse fails to load the plug-in. If so, run the eclipse-clean command.
After the plug-in is started, File-> New-> Project... if the Map/Reduce Project option appears, select next, and enter the Project name, it indicates that the plug-in has been installed successfully. If the Map/Reduce Project option appears, but an error is prompted after "next", it means that the plug-in you are using is not feasible. You must find the correct plug-in (some may compile the plug-in by themselves, ).