You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Joel Costigliola (JIRA)" <ji...@apache.org> on 2012/09/13 15:08:08 UTC

[jira] [Created] (HADOOP-8799) commons-lang version mismatch

Joel Costigliola created HADOOP-8799:
----------------------------------------

             Summary: commons-lang version mismatch
                 Key: HADOOP-8799
                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
             Project: Hadoop Common
          Issue Type: Bug
    Affects Versions: 1.0.3
            Reporter: Joel Costigliola


hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.

{noformat}
org.apache.hadoop:hadoop-core:jar:1.0.3:provided
+- commons-cli:commons-cli:jar:1.2:provided
+- xmlenc:xmlenc:jar:0.52:provided
+- commons-httpclient:commons-httpclient:jar:3.0.1:provided
+- commons-codec:commons-codec:jar:1.4:provided
+- org.apache.commons:commons-math:jar:2.1:provided
+- commons-configuration:commons-configuration:jar:1.6:provided
|  +- commons-collections:commons-collections:jar:3.2.1:provided
|  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
{noformat}

Hadoop install libs should be consistent with hadoop-core maven dependencies.

I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).

A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.



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

[jira] [Updated] (HADOOP-8799) commons-lang version mismatch

Posted by "Giridharan Kesavan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giridharan Kesavan updated HADOOP-8799:
---------------------------------------

    Component/s: build
    
> commons-lang version mismatch
> -----------------------------
>
>                 Key: HADOOP-8799
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.3
>            Reporter: Joel Costigliola
>
> hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.
> {noformat}
> org.apache.hadoop:hadoop-core:jar:1.0.3:provided
> +- commons-cli:commons-cli:jar:1.2:provided
> +- xmlenc:xmlenc:jar:0.52:provided
> +- commons-httpclient:commons-httpclient:jar:3.0.1:provided
> +- commons-codec:commons-codec:jar:1.4:provided
> +- org.apache.commons:commons-math:jar:2.1:provided
> +- commons-configuration:commons-configuration:jar:1.6:provided
> |  +- commons-collections:commons-collections:jar:3.2.1:provided
> |  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
> {noformat}
> Hadoop install libs should be consistent with hadoop-core maven dependencies.
> I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).
> A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.

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

[jira] [Commented] (HADOOP-8799) commons-lang version mismatch

Posted by "Giridharan Kesavan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455452#comment-13455452 ] 

Giridharan Kesavan commented on HADOOP-8799:
--------------------------------------------

could you pls list the steps to repro? I checked the ivy/libraries.properties and the commons-configuration pom for transient dependency, both has commons-lang version set to 2.4. 

I tried a local build and this is what I see;
{quote}
[ivy:resolve]   found commons-el#commons-el;1.0 in maven2
[ivy:resolve]   found commons-configuration#commons-configuration;1.6 in maven2
[ivy:resolve]   found commons-collections#commons-collections;3.2.1 in maven2
[ivy:resolve]   found commons-lang#commons-lang;2.4 in maven2
{quote}

could you pls try this with a clean .ivy2 .m2 cache ?
                
> commons-lang version mismatch
> -----------------------------
>
>                 Key: HADOOP-8799
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.3
>            Reporter: Joel Costigliola
>
> hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.
> {noformat}
> org.apache.hadoop:hadoop-core:jar:1.0.3:provided
> +- commons-cli:commons-cli:jar:1.2:provided
> +- xmlenc:xmlenc:jar:0.52:provided
> +- commons-httpclient:commons-httpclient:jar:3.0.1:provided
> +- commons-codec:commons-codec:jar:1.4:provided
> +- org.apache.commons:commons-math:jar:2.1:provided
> +- commons-configuration:commons-configuration:jar:1.6:provided
> |  +- commons-collections:commons-collections:jar:3.2.1:provided
> |  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
> {noformat}
> Hadoop install libs should be consistent with hadoop-core maven dependencies.
> I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).
> A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.

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

[jira] [Commented] (HADOOP-8799) commons-lang version mismatch

Posted by "Joel Costigliola (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455658#comment-13455658 ] 

Joel Costigliola commented on HADOOP-8799:
------------------------------------------

Sorry, there is no problem, my mistake.

commons-lang was set to 2.6 version in some parent pom of my project, and it was overriding the 2.4 version deduced from transitive dependency.

Sorry again ! 

Joel

ps : I think still me be useful to display the classpath used when running a job, if you think it is worth it I will create an issue for that.

                
> commons-lang version mismatch
> -----------------------------
>
>                 Key: HADOOP-8799
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.3
>            Reporter: Joel Costigliola
>
> hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.
> {noformat}
> org.apache.hadoop:hadoop-core:jar:1.0.3:provided
> +- commons-cli:commons-cli:jar:1.2:provided
> +- xmlenc:xmlenc:jar:0.52:provided
> +- commons-httpclient:commons-httpclient:jar:3.0.1:provided
> +- commons-codec:commons-codec:jar:1.4:provided
> +- org.apache.commons:commons-math:jar:2.1:provided
> +- commons-configuration:commons-configuration:jar:1.6:provided
> |  +- commons-collections:commons-collections:jar:3.2.1:provided
> |  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
> {noformat}
> Hadoop install libs should be consistent with hadoop-core maven dependencies.
> I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).
> A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.

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

[jira] [Commented] (HADOOP-8799) commons-lang version mismatch

Posted by "Giridharan Kesavan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455970#comment-13455970 ] 

Giridharan Kesavan commented on HADOOP-8799:
--------------------------------------------

 @joel, If you think this is invalid, could you please resolve the jira as invalid?
                
> commons-lang version mismatch
> -----------------------------
>
>                 Key: HADOOP-8799
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.3
>            Reporter: Joel Costigliola
>
> hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.
> {noformat}
> org.apache.hadoop:hadoop-core:jar:1.0.3:provided
> +- commons-cli:commons-cli:jar:1.2:provided
> +- xmlenc:xmlenc:jar:0.52:provided
> +- commons-httpclient:commons-httpclient:jar:3.0.1:provided
> +- commons-codec:commons-codec:jar:1.4:provided
> +- org.apache.commons:commons-math:jar:2.1:provided
> +- commons-configuration:commons-configuration:jar:1.6:provided
> |  +- commons-collections:commons-collections:jar:3.2.1:provided
> |  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
> {noformat}
> Hadoop install libs should be consistent with hadoop-core maven dependencies.
> I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).
> A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.

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

[jira] [Resolved] (HADOOP-8799) commons-lang version mismatch

Posted by "Joel Costigliola (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joel Costigliola resolved HADOOP-8799.
--------------------------------------

    Resolution: Invalid
    
> commons-lang version mismatch
> -----------------------------
>
>                 Key: HADOOP-8799
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8799
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.0.3
>            Reporter: Joel Costigliola
>
> hadoop install references commons-lang-2.4.jar while hadoop-core dependency references commons-lang:jar:2.6 as shown in maven dependency:tree command output extract.
> {noformat}
> org.apache.hadoop:hadoop-core:jar:1.0.3:provided
> +- commons-cli:commons-cli:jar:1.2:provided
> +- xmlenc:xmlenc:jar:0.52:provided
> +- commons-httpclient:commons-httpclient:jar:3.0.1:provided
> +- commons-codec:commons-codec:jar:1.4:provided
> +- org.apache.commons:commons-math:jar:2.1:provided
> +- commons-configuration:commons-configuration:jar:1.6:provided
> |  +- commons-collections:commons-collections:jar:3.2.1:provided
> |  +- commons-lang:commons-lang:jar:2.6:provided (version managed from 2.4)
> {noformat}
> Hadoop install libs should be consistent with hadoop-core maven dependencies.
> I found this error because I was using a feature available in commons-lang.2.6 that was failing when executed in my hadoop cluster (but not with m pigunit tests).
> A last remark, it would be nice to display the classpath used by hadoop cluster while executing a job, because these kinds of errors are not easy to find.

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