How to recompile hadoop source code
Xiaobian to share with you how to recompile hadoop source code, I believe most people still do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
Hadoop-1.0.3 source code download address:
http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/
Experimental environment: redhat version
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Recompile hadoop source code in redhat.
1. Migrate hadoop-1.0.3 source code from svn
[hadoop@master hadoop-p]$ svn co http://svn.apache.org/repos/asf/hadoop/common/tags/release-1.0.3/
2. Compile hadoop in the directory where the build.xml file is located
[hadoop@master release-1.0.3]$ ant
Compile error: type parameter? extends T is not in the range of type variable E Detailed error information:
compile:
[echo] contrib: gridmix
[javac] Compiling 31 source files to /home/hadoop/hadoop-p/release-1.0.3/build/contrib/gridmix/classes
[javac] /home/hadoop/hadoop-p/release-1.0.3/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Gridmix.java:396: Error: Type parameter? extends T is not in the range of type variable E
[javac] private String getEnumValues(Enum