hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-567) The build script should record the Hadoop version into the build
Date Mon, 02 Oct 2006 20:14:20 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-567?page=comments#action_12439303 ] 
            
Doug Cutting commented on HADOOP-567:
-------------------------------------

The point about the Package stuff, is that, without much complexity (Ant adds a manifest to
the jar), we can use a standard API for this, and some folks might benefit from that.  We
could include the same information (author, revision, etc.) but we'd encode it in the available
fields, e.g., implementationVersion could be version+revision, vendor could be "Apache Software
Foundation, built by <user>", etc.

Someday someone might reasonably suggest that the Hadoop jar should include a manifest containing
its version.  (That's what happened with Lucene.)  Should we then have two mechanisms to stamp
builds with the version?

It might sound like I feel strongly about this.  I don't.  Your approach has clear advantages
over a Package-based solution: the values are more structured & can thus more easily be
formatted as we wish.  I just wanted to raise the Package issue for consideration.  It's likely
to arise again someday, so if we decide against it we should do so knowingly and have a rationale
ready.  (Like Serializeable, RMI, & other wheels we reinvent.)

I'm also in general not very sympathetic to designing things for alternate build environments.
 We have a single supported build environment, Ant.  If folks build things in other ways then
it might not work.  Doesn't Eclipse use the Ant build?  Do we really need to support folks
who've not configured their Eclipse environment to do so?  (Note that storing the version
in the jar manifest also mostly avoids this issue.)  I feel slightly stronger about this one.

> The build script should record the Hadoop version into the build
> ----------------------------------------------------------------
>
>                 Key: HADOOP-567
>                 URL: http://issues.apache.org/jira/browse/HADOOP-567
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: util
>    Affects Versions: 0.6.2
>            Reporter: Owen O'Malley
>         Assigned To: Owen O'Malley
>             Fix For: 0.7.0
>
>         Attachments: version.patch
>
>
> It would be good to compile the Hadoop version, subversion revision, and compilation
date into the hadoop.jar file. 
> The web/ui would display the version for each of the server home page.
> I'd also add "bin/hadoop version" to print the version information.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message