Skip to content

Instantly share code, notes, and snippets.

@theamith
Created May 29, 2013 14:38
Show Gist options
  • Save theamith/5670765 to your computer and use it in GitHub Desktop.
Save theamith/5670765 to your computer and use it in GitHub Desktop.
Build Hadoop Eclipse Plugin
1. Download java 5 from http://de.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/ and extract it to /usr/local/HaddopEclipsePlugin
2. Download Ant from http://ant.apache.org/bindownload.cgi and extract it to /usr/local/HadoopEclipsePlugin
3. Edit ~/.bashrc file and Add ANT_HOME and PATH
export ANT_HOME=/usr/local/HadoopEclipsePlugin/apache-ant-1.9.1
export PATH=$ANT_HOME/bin:$PATH
4. Check Ant is installed properly by
hduser@Hadoop:~$ ant -version
Apache Ant(TM) version 1.9.1 compiled on May 15 2013
hduser@Hadoop:~$
5. Download Apache Forrest from http://forrest.apache.org/mirrors.cgi and extract it to /usr/local/HadoopEclipsePlugin
6. Download Hadoop and Extract to /usr/local/HadoopEclipsePlugin
7. Install Hadoop Refer https://docs.google.com/document/d/1v-J19xwJn-Pw9F8OCgLn04dqKwYkGIOxyqRAIGpmHk0/edit?pli=1
8. Go to ${YOUR_HADOOP_HOME}/src/contrib and trigger the following command
$ant clean package –Djava5.home=$JAVA_HOME –Dforrest.home=/usr/local/HadoopEclipsePlugin/apache-forrest-0.9 -Declipse.home=/usr/local/HadoopEclipsePlugin/eclipse -Dhadoop.home=$HADOOP_HOME
9. Once build successfully completed, copy the finish jar file from ${HADDOP_HOME}/build/hadoop-eclipse-plugin-version-SNAPSHOT.jar to ${ECLIPSE_HOME}/plugins.
10. Start/Restart Eclipse and Enjoy..!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment