Hi Friends,
Today I want to write about how to build an eclipse plugin...as I faced so much trouble in building it so I want to compile all the steps that I have taken to build it.
1. Install Hadoop 1.0.4 and perform all the setup steps as specified in this --- LINK
I performed the setup for Pseudo-Distributed Operation
I comes with source code of eclipse plugin and build file for building it.
2. Install Eclipse Galileo or as document say you need to get at least eclipse version greater then 3.4
I did all the installation and building process on virtual machine running Ubuntu 10.04 LTS
Lets start then:
0. I hope everyone have hadoop and eclipse installed it on there system
1. Install Apache Forrest 0.8 tar.gz (It has to be version 0.8 no other version will work) --- LINK
2. Get Java version 5 update 22 (You specifically need version 5 only otherwise it will not work) ---LINK
3. Go to src/contib/eclipse_plugin folder then open build.properties using "nano build.properties"
In it we need to set the path to eclipse...append following to the end of file:
"eclipse.home = /usr/lib/eclipse/"
I have my eclipse folder in /usr/lib/ with the name eclipse.
4. Now either copy using cp these jars from ${hadoop}/lib to ${jar}/lib or Follow Step 5
***Step 6 need to be followed in both case i.e. either you use step 5 or step 4..I recommend use Step 5
6. Modify following to MANIFEST file:
7. Now we can run the command to build our eclipse plugin
come out of > hadoop/src/contib/eclipse_plugin folder to >hadoop folder
Use following command to build eclipse plugin
ant clean package -Djava5.home=/opt/java/jdk1.5.0_22 -Dforrest.home=/opt/apache-forrest-0.8
/opt/java/jdk1.5.0_22 is the place where I installed my jdk 5 and /opt/apache-forrest-0.8 is the place where I installed forrest 0.8
In the end it might give you build failure but do not worry eclipse plugin jar will be in
>hadoop/build/contrib/eclipse-plugin
8. Now you can copy this plugin to your eclipse -> plugin folder and start eclipse and go to open perspective and select Map Reduce (as soon as you see Map reduce means your plugin was successful)
Enjoy!!!
I hope you find this post informative please email me post comment if you face any problem and then we will solve the problem together :)
Today I want to write about how to build an eclipse plugin...as I faced so much trouble in building it so I want to compile all the steps that I have taken to build it.
1. Install Hadoop 1.0.4 and perform all the setup steps as specified in this --- LINK
I performed the setup for Pseudo-Distributed Operation
I comes with source code of eclipse plugin and build file for building it.
2. Install Eclipse Galileo or as document say you need to get at least eclipse version greater then 3.4
I did all the installation and building process on virtual machine running Ubuntu 10.04 LTS
Lets start then:
0. I hope everyone have hadoop and eclipse installed it on there system
1. Install Apache Forrest 0.8 tar.gz (It has to be version 0.8 no other version will work) --- LINK
2. Get Java version 5 update 22 (You specifically need version 5 only otherwise it will not work) ---LINK
3. Go to src/contib/eclipse_plugin folder then open build.properties using "nano build.properties"
In it we need to set the path to eclipse...append following to the end of file:
"eclipse.home = /usr/lib/eclipse/"
I have my eclipse folder in /usr/lib/ with the name eclipse.
4. Now either copy using cp these jars from ${hadoop}/lib to ${jar}/lib or Follow Step 5
- commons-cli-1.2.jar
- commons-configuration-1.6.jar
- jackson-core-asl-1.8.8.jar
- jackson-mapper-asl-1.8.8.jar
- commons-httpclient-3.0.1.jar
- commons-lang-2.4.jar
5. Add following code to ${eclipse-plugin-src}/build.xml target jar
<copy file="${hadoop.root}/build/ivy/lib/Hadoop/common/commons-cli-${commons-cli.version}.jar" todir="${build.dir}/lib" verbose="true"/>
<copy file="${hadoop.root}/lib/commons-configuration-${commons-configuration.version}.jar" todir="${build.dir}/lib" verbose="true"/>
<copy file="${hadoop.root}/lib/commons-httpclient-${commons-httpclient.version}.jar" todir="${build.dir}/lib" verbose="true"/>
<copy file="${hadoop.root}/lib/commons-lang-${commons-lang.version}.jar" todir="${build.dir}/lib" verbose="true"/>
<copy file="${hadoop.root}/lib/jackson-core-asl-${jackson.version}.jar" todir="${build.dir}/lib" verbose="true"/>
<copy file="${hadoop.root}/lib/jackson-mapper-asl-${jackson.version}.jar" todir="${build.dir}/lib" verbose="true"/>
***Step 6 need to be followed in both case i.e. either you use step 5 or step 4..I recommend use Step 5
6. Modify following to MANIFEST file:
bundle-ClassPath: classes/,
lib/hadoop-core.jar,
lib/commons-cli-1.2.jar,
lib/commons-configuration-1.6.jar,
lib/jackson-core-asl-1.8.8.jar,
lib/commons-httpclient-3.0.1.jar,
lib/jackson-mapper-asl-1.8.8.jar,
lib/commons-lang-2.4.jar
7. Now we can run the command to build our eclipse plugin
come out of > hadoop/src/contib/eclipse_plugin folder to >hadoop folder
Use following command to build eclipse plugin
ant clean package -Djava5.home=/opt/java/jdk1.5.0_22 -Dforrest.home=/opt/apache-forrest-0.8
/opt/java/jdk1.5.0_22 is the place where I installed my jdk 5 and /opt/apache-forrest-0.8 is the place where I installed forrest 0.8
In the end it might give you build failure but do not worry eclipse plugin jar will be in
>hadoop/build/contrib/eclipse-plugin
8. Now you can copy this plugin to your eclipse -> plugin folder and start eclipse and go to open perspective and select Map Reduce (as soon as you see Map reduce means your plugin was successful)
Enjoy!!!
I hope you find this post informative please email me post comment if you face any problem and then we will solve the problem together :)