1) prepare jdk
- Download oracle jdk compressed version for linux
- tar -xvf jdk-7u10-linux-x64.tar.gz into folder /usr/lib/jvm
- alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_10-sun/bin/java 99 --slave /usr/bin/keytool keytool /usr/lib/jvm/jdk1.7.0_10-sun/bin/keytool --slave /usr/bin/rmiregistry rmiregistry /usr/lib/jvm/jdk1.7.0_10-sun/rmiregistry
- alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_10-sun/bin/javac 99 --slave /usr/bin/jar jar /usr/lib/jvm/jdk1.7.0_10-sun/bin/jar --slave /usr/bin/rmic rmic /usr/lib/jvm/jdk1.7.0_10-sun/rmic
- alternatives --config java
- ln -s /usr/lib/jvm/jdk1.7.0_10-sun/ /usr/java/default (no need if we did not try oracle jdk rpm installer)
2) prepare ant and ivy
- check ant installation: rpm -qa | grep ant
- yum install ant
- download ivy from apache
- copy ivy jar files and dependent jars to /usr/share/ant/lib/
3) make sure automake is installed
- yum install automake
4) make sure libtool is installed
- yum install libtool
5) check out hadoop source code
svn checkout http://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.1/
6) run ant command to build hadoop 1.1