[
https://issues.apache.org/jira/browse/HADOOP-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529389
]
Nilay Vaish commented on HADOOP-1773:
-------------------------------------
I can explain what those lines are trying to do though I have not been able to
figure out the reason for the build process to hang.
1. The lines in between the <touch></touch> tags will convert the date of all
the *.template files in conf and contrib directories to the specified date.
2. The lines between the <copy></copy> tags will take the files in the conf
directory that are of the type *.template and make a copy of them in the conf
directory but will remove the .template extension. For example, there is
"hadoop-env.sh.template" file in conf directory. The command will copy this
file to "hadoop-env.sh" in conf directory itself.
3. Same as 2 but for the contrib directory.
When I try building Hadoop, I first see the commands for creating directories
under the init tag. This just before the lines that you have commented out. But
these are missing from the output that you have provided.
> Hadoop build (ant) hangs while setting up init target, build process hangs
> --------------------------------------------------------------------------
>
> Key: HADOOP-1773
> URL: https://issues.apache.org/jira/browse/HADOOP-1773
> Project: Hadoop
> Issue Type: Bug
> Components: build
> Affects Versions: 0.15.0
> Environment: Fedora7 on x64, java version "1.6.0_02", latest hadoop
> (svn version as of 8/21/07), ant version 1.7.0 (but same problem with 1.6.5)
> Reporter: Yuri Pradkin
> Priority: Critical
> Fix For: 0.15.0
>
>
> Ant hangs during a build process, eventually (in hours) dies of heap
> exhaustion.
> The problematic lines in build.xml seem to be in the init target (fileset
> operations):
> - <touch datetime="01/25/1971 2:00 pm">
> - <fileset dir="${conf.dir}" includes="**/*.template"/>
> - <fileset dir="${contrib.dir}" includes="**/*.template"/>
> - </touch>
> - <copy todir="${conf.dir}" verbose="true">
> - <fileset dir="${conf.dir}" includes="**/*.template"/>
> - <mapper type="glob" from="*.template" to="*"/>
> - </copy>
> - <copy todir="${contrib.dir}" verbose="true">
> - <fileset dir="${contrib.dir}" includes="**/*.template"/>
> - <mapper type="glob" from="*.template" to="*"/>
> - </copy>
> Commenting them out or deleting allows build to proceed to sucessful
> completion. Not being an expert,
> in either xml or ant, I'm not sure what exactly I'm missing with those lines
> gone, but at least I'm able to compile.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.