hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Foley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8924) Hadoop Common creating package-info.java must not depend on sh
Date Wed, 17 Oct 2012 01:24:03 GMT

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

Matt Foley commented on HADOOP-8924:

Hi Aaron, I advised Chris to use Python.  As a general matter I think we should stay cross-platform
wherever it makes sense to do so.  In other words, if something is obviously totally platform-dependent,
then go ahead and do two versions, one in shell for Linux, and one in powershell or cmd for
Windows.  However, where it can be platform-independent, I think we should use a platform-independent
scripting language to write a single script (which may include some conditional code for platform-dependent
cases if necessary).  Obviously it works fine in this case.

Python is only one possibility, of course.  However it seemed a reasonable choice. It's object-oriented,
with reasonable IDE support.  It's free (like beer and speech), available on essentially all
platforms, and in good odour with the OSS community.  The only other evident candidate would
be Ruby, but I think more people know Python than Ruby, altho I can't substantiate that. (Altho
there is the [Tiobe Index|http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html],
which I don't claim is authoritative.)

This is worth discussing, because as we integrate the Windows port, we'll have lots of opportunity
to follow whatever model we agree on.  Shall we continue here, or pop it to a common-dev thread?

And I agree with you that whatever answer we agree on should be documented as a build dependency.
> Hadoop Common creating package-info.java must not depend on sh
> --------------------------------------------------------------
>                 Key: HADOOP-8924
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8924
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>             Fix For: trunk-win
>         Attachments: HADOOP-8924-branch-trunk-win.patch
> Currently, the build process relies on saveVersion.sh to generate package-info.java with
a version annotation.  The sh binary may not be available on all developers' machines (e.g.
Windows without Cygwin). This issue tracks removal of that dependency in Hadoop Common.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message