Harsh J

Memoirs of a QWERTY Keyboard

Making the Eclipse Plugin work for Hadoop

3 comments

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

3 Responses to 'Making the Eclipse Plugin work for Hadoop'

Subscribe to comments with RSS or TrackBack to 'Making the Eclipse Plugin work for Hadoop'.

  1. Hello Harsh,
    It works!

    Can I translate this tip into portuguese on my blog adding a reference to your site as source?
    I intent to publish more materials about hadoop in portuguese there, but I didn’t start yet.

    Thanks anyway.

    Diego Desani

    5 Oct 10 at 4:49 am

  2. Hello,
    You surely can :)

    Harsh

    5 Oct 10 at 10:30 pm

  3. Following are the steps for CYGWIN

    1 $ cd $HADOOP_HOME

    2 $ download the alex-hadoop-3744. patch file and rename it to eclipse.patch

    3 $ copy the file eclipse.patch to $HADOOP_HOME

    4 $ patch -p0 < eclipse.patch

    5 # The following is where my eclipse resides.
    in dos format C:\home\eclipse

    6 $ export ECLIPSE_HOME=/home/eclipse

    7 $ ant -Declipse.home=$ECLIPSE_HOME binary

    8 $ cp build/hadoop-0.20.3-dev/contrib/eclipse-plugin/hadoop-*.jar $ECLIPSE_HOME/plugins

    pankaj mittal

    6 Oct 10 at 8:27 am

Leave a Reply