hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hrishikesh (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1773) Hadoop build (ant) hangs while setting up init target, build process hangs
Date Mon, 07 Jan 2008 12:45:34 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556556#action_12556556
] 

Hrishikesh commented on HADOOP-1773:
------------------------------------

I don't see any error on fedora_core_x64 jdk_1.5 ant_1.7


Quoting a code snippet from build.xml  
<touch datetime="01/25/1971 2:00 pm">
      <fileset dir="${conf.dir}" includes="**/*.template"/>
      <fileset dir="${contrib.dir}" includes="**/*.template"/>
    </touch>

What is the significance of "01/25/1971 2:00 pm" .. if the idea is to stamp the files with
an older date.. then a better thing to do is
<touch millis="0">
      <fileset dir="${conf.dir}" includes="**/*.template"/>
      <fileset dir="${contrib.dir}" includes="**/*.template"/>
    </touch>

This may not fix the issue.. its just a suggestion to make the build file easier to understand

> 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
>
> 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.


Mime
View raw message