FAQ
Remove Hadoop's dependance on the cli 2 snapshot
------------------------------------------------

Key: HADOOP-3676
URL: https://issues.apache.org/jira/browse/HADOOP-3676
Project: Hadoop Core
Issue Type: Improvement
Components: util
Reporter: Owen O'Malley
Assignee: Owen O'Malley


Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Steve Loughran (JIRA) at Jul 2, 2008 at 1:02 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609911#action_12609911 ]

    Steve Loughran commented on HADOOP-3676:
    ----------------------------------------

    +1

    this complicates downstream applications, and as there is no sign of a cli-2.0 coming out, would be a blocker when hadoop got round to a 1.0 release, as ASF rules say "Dont release with unreleased versions of other bits of apache code"
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Owen O'Malley (JIRA) at Jul 2, 2008 at 3:10 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609948#action_12609948 ]

    Owen O'Malley commented on HADOOP-3676:
    ---------------------------------------

    which means this should really be a blocker, since we *have* been making releases with it. *sigh* Unfortunately, this means I have to re-write the cli handling for both streaming and pipes, so I think putting this into 0.18 would be a very bad idea from a reliability point of view.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Steve Loughran (JIRA) at Jul 10, 2008 at 1:50 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612499#action_12612499 ]

    Steve Loughran commented on HADOOP-3676:
    ----------------------------------------

    well lets target a later version; or push the commons 2 team to roll out a stable 2.0 release.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Frederick Haebin Na (JIRA) at Oct 29, 2008 at 4:41 am
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643411#action_12643411 ]

    Frederick Haebin Na commented on HADOOP-3676:
    ---------------------------------------------

    Add following scripts in the pom.

    <repositories>
    <repository>
    <id>apache snapshot</id>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
    </repositories>

    ...

    <dependencies>
    ...
    <!--CLI is needed to scan the command line, but only the 1.0 branch is released -->
    <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-cli</artifactId>
    <version>2.0-SNAPSHOT</version>
    </dependency>
    ...
    </dependencies>



    Then, you will be able to use the both versions of commons-cli.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Edward J. Yoon (JIRA) at Oct 29, 2008 at 5:03 am
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643413#action_12643413 ]

    Edward J. Yoon commented on HADOOP-3676:
    ----------------------------------------

    +1, and I also agree with steve loughran.

    frederick, thanks for your good tip, but there is no pom.xml file and that matter is of no significance on this issue.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Frederick Haebin Na (JIRA) at Oct 29, 2008 at 5:07 am
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643411#action_12643411 ]

    haebin edited comment on HADOOP-3676 at 10/28/08 10:05 PM:
    ------------------------------------------------------------------------

    Oops,
    what I was trying to say was that you could use snapshot release.
    You can depend on the both versions since they use different package name. (I tested with my pom file)



    -------------------------------------------------------------------------------------------------------------------------------
    Add following scripts in the pom.

    <repositories>
    <repository>
    <id>apache snapshot</id>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
    </repositories>

    ...

    <dependencies>
    ...
    <!--CLI is needed to scan the command line, but only the 1.0 branch is released -->
    <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-cli</artifactId>
    <version>2.0-SNAPSHOT</version>
    </dependency>
    ...
    </dependencies>



    Then, you will be able to use the both versions of commons-cli.

    was (Author: haebin):
    Add following scripts in the pom.

    <repositories>
    <repository>
    <id>apache snapshot</id>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
    </repositories>

    ...

    <dependencies>
    ...
    <!--CLI is needed to scan the command line, but only the 1.0 branch is released -->
    <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-cli</artifactId>
    <version>2.0-SNAPSHOT</version>
    </dependency>
    ...
    </dependencies>



    Then, you will be able to use the both versions of commons-cli.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Frederick Haebin Na (JIRA) at Oct 29, 2008 at 5:19 am
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643411#action_12643411 ]

    haebin edited comment on HADOOP-3676 at 10/28/08 10:17 PM:
    ------------------------------------------------------------------------

    Oops again,
    0.20.0 already using it.

    why don't you close this issue.
    this is not a blocker anymore rite?

    ------------------------------------------------------------------------------------------------------------------------------
    Oops,
    what I was trying to say was that you could use snapshot release.
    You can depend on the both versions since they use different package name. (I tested with my pom file)



    -------------------------------------------------------------------------------------------------------------------------------
    Add following scripts in the pom.

    <repositories>
    <repository>
    <id>apache snapshot</id>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
    </repositories>

    ...

    <dependencies>
    ...
    <!--CLI is needed to scan the command line, but only the 1.0 branch is released -->
    <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-cli</artifactId>
    <version>2.0-SNAPSHOT</version>
    </dependency>
    ...
    </dependencies>



    Then, you will be able to use the both versions of commons-cli.

    was (Author: haebin):
    Oops,
    what I was trying to say was that you could use snapshot release.
    You can depend on the both versions since they use different package name. (I tested with my pom file)



    -------------------------------------------------------------------------------------------------------------------------------
    Add following scripts in the pom.

    <repositories>
    <repository>
    <id>apache snapshot</id>
    <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
    </repositories>

    ...

    <dependencies>
    ...
    <!--CLI is needed to scan the command line, but only the 1.0 branch is released -->
    <dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-cli</artifactId>
    <version>2.0-SNAPSHOT</version>
    </dependency>
    ...
    </dependencies>



    Then, you will be able to use the both versions of commons-cli.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Steve Loughran (JIRA) at Oct 29, 2008 at 11:14 am
    [ https://issues.apache.org/jira/browse/HADOOP-3676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643466#action_12643466 ]

    Steve Loughran commented on HADOOP-3676:
    ----------------------------------------

    Frederick,
    The issue is not that we can't get hold of a CLI snapshot (we have one checked in), but that apache rules say "don't release snapshort artifacts as they haven't been through the full legally backed release process". to put it differently: SNAPSHOTS are nightly builds, not releases, don't depend on them.

    That holds for the SNAPSHOT repository, which is an interesting area, and not anything that anyone who wants a replicable build should be including in their dependency graph, as it becomes impossible to build a previous version of your application if that artifact changes.
    Remove Hadoop's dependance on the cli 2 snapshot
    ------------------------------------------------

    Key: HADOOP-3676
    URL: https://issues.apache.org/jira/browse/HADOOP-3676
    Project: Hadoop Core
    Issue Type: Improvement
    Components: util
    Reporter: Owen O'Malley
    Assignee: Owen O'Malley

    Currently, the Hadoop release includes a jar of the Apache commons-cli from a snapshot of 2.0. Hadoop isn't getting a major benefit from the 2.0 api, which in fact is pretty buggy, and we should just roll back to the cli 1.1 release.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJul 1, '08 at 3:57p
activeOct 29, '08 at 11:14a
posts9
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Steve Loughran (JIRA): 9 posts

People

Translate

site design / logo © 2023 Grokbase