I need to apply patch to Release 0.19.1, In order to deploy I need to compile again and create a new Hadoop-*-core.jar
The development environment consists of Windows XP , Eclipse 3.4 (IBM RAD 7.5) The target platform is AIX 5.3. I have extracted the release from the SVN, and tried to exeucte the ANT build (project -> Build project) Problem encontered: 1. Failure to carry out target <compile-core-classes>, it seem that the <jsp-compiler> macro fails to find org.apach.log4j.Category class. Resolution: Since the release comes with log4j ver 1.2.15 which does not include this class, I have commented out the <jsp-compiler> tasks, this has allowed me to continue processing. Help: How should I include the web class (war) into the newly compiled jars ? 2. Failure to compile <compile-contrib> ->>> <eclipse-plugin> project, fails. Resolution: It seems that the build.xml under src/contrib/eclipse-plugin direcotory uses property ${eclipse.home} This property should refernce the plugin jars, However, my platform places the plugin jars in a different location ! I have carried out the following steps to make it work: - Under Windows->Preferences->Ant->Runtime in the Property tab, I have added a new variable eclipse.homeplugins=<MY_PLUGIN_PATH> - In src/contrib/build-contrib.xml I have added the following condition <condition property="eclipse_plugin.home" value="${eclipse.homeplugins}" else="${eclipse.home}"> <and> <isset property="${eclipse.homeplugins}"/> </and> </condition> - In src/contrib/eclipse-plugin/build.xml I have changed the <path id="eclipse-sdk-jars"> into the following: <path id="eclipse-sdk-jars"> <!-- The following original is REMOVED, fileset dir="${eclipse.home}/plugins/" --> <fileset dir="${eclipse_plugin.home}/plugins/"> ..... </fileset> </path> Help: The build fails, after 100 of such erros (beside avoid compiling this project) [*javac*] * D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\src\contrib\eclipse-plugin\src\java\org\apache\hadoop\eclipse\Activator.java *:56: cannot find symbol [*javac*] symbol : class BundleContext [*javac*] location: class org.apache.hadoop.eclipse.Activator [*javac*] public void start(BundleContext context) throws Exception { ..... [*javac*] Note: Recompile with -Xlint:unchecked for details. [*javac*] 100 errors *[subant*] Exiting D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\src\contrib\eclipse-plugin\build.xml.[ *subant*] Exiting D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\src\contrib\build.xml. BUILD FAILED * D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\build.xml:426: The following error occurred while executing this line: D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\src\contrib\build.xml:30: The following error occurred while executing this line: D:\Work\AviadWork\workspace\cur\WSAD\Hadoop_Core_19_1\Hadoop\src\contrib\build-contrib.xml:121: Compile failed; see the compiler error output for details. *at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Unknown Source) at org.apache.tools.ant.taskdefs.Ant.execute(Unknown Source) at org.apache.tools.ant.taskdefs.SubAnt.execute(Unknown Source) at org.apache.tools.ant.taskdefs.SubAnt.execute(Unknown Source) at org.apache.tools.ant.UnknownElement.execute(Unknown Source) .....