Build a Hadoop development environment for Fedora 20
1. configuration information:
Operating System: fedora 20X86
Eclipse version: eclipse-jee-helios-SR2-linux-gtk.tar.gz (preferably use Galileo or Helios, otherwise there may be compatibility issues)
Hadoop version: hadoop-1.1.2.tar.gz
Ant: apache-ant-1.9.3-bin.tar.gz
2. Compile the hadoop-eclipse-plugin-1.1.2.jar
2.1 modify the build-contrib.xml file for the $ {hadoop. root}/src/contrib directory and add eclipse paths and hadoop version information
<Property name = "eclipse. home" location = "/hugl/Android/eclipse"/>
<Property name = "version" value = "1.1.2"/>
:
2.2 modify $ {hadoop. root}/src/contrib/eclipse-plugin directory build. xml file. Add the jar dependency of hadoop-core to the path node with the id of classpath, as shown in the following record.
<Pathelement location = "$ {hadoop. root}/hadoop-core-1.1.2.jar"/>
:
At the same time, find the target whose name is jar and package the corresponding jar file into the lib directory of the plug-in.
Replace the original <copy file = "$ {hadoop. root}/build/hadoop-core-$ {version }. jar "tofile =" $ {build. dir}/lib/hadoop-core.jar "verbose =" true "/>
<Copy file = "$ {hadoop. root}/build/ivy/lib/Hadoop/common/commons-cli-$ {commons-cli.version }. jar "todir =" $ {build. dir}/lib "verbose =" true "/> comment out the two rows and add the following results here:
<Copy file = "$ {hadoop. root}/hadoop-core-$ {version }. jar "tofile =" $ {build. dir}/lib/hadoop-core.jar "verbose =" true "/>
<Copy file = "$ {hadoop. root}/lib/commons-cli-$ {commons-cli.version }. jar "todir =" $ {build. dir}/lib "verbose =" true "/>
<Copy file = "$ {hadoop. root}/lib/commons-lang-2.4.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/commons-configuration-1.6.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/jackson-mapper-asl-1.8.8.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/jackson-core-asl-1.8.8.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
<Copy file = "$ {hadoop. root}/lib/commons-httpclient-3.0.1.jar" todir = "$ {build. dir}/lib" verbose = "true"/>
: