Harsh J

Memoirs of a QWERTY Keyboard

Making the Eclipse Plugin work for Hadoop

leave a comment

The default plugin offered by Hadoop for Eclipse, which allows browsing the DFS and running jobs among other things, does not work really well with newer versions of Eclipse. The issue is that the plugin (found under HADOOP_HOME/src/contrib/eclipse-plugin) is written for a fairly old version of Eclipse (Europa) and things have changed in the newer releases (Ganymede, Galileo and Helios).

To fix it, first get the patch from MAPREDUCE-1280 (direct download here), and apply it into your Hadoop installation. The following commands describe the process for getting the plugin built:

$ cd $HADOOP_HOME
$ patch -p0 < ~/eclipse.patch
$ # The following is where my eclipse resides.
$ export ECLIPSE_HOME=/usr/share/eclipse
$ ant -Declipse.home=$ECLIPSE_HOME binary
$ cp build/contrib/eclipse-plugin/hadoop-*.jar $ECLIPSE_HOME/plugins


That’s it. The last line in the commands above had copied it to your Eclipse installation, which you can then restart and switch to Hadoop MapReduce perspective and run jobs flawlessly. Credits go to Alex Kozly for mentioning the solution here.

Written by Harsh

July 18th, 2010 at 12:05 am

Posted in Personal

Leave a Reply