Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3806

[Gridmix] TestGridmixSubmission fails due to incorrect version of jackson

    Details

    • Target Version/s:
    • Tags:
      gridmix junit error

      Description

      TestGridmixSubmission fails with the following error

      org.codehaus.jackson.type.JavaType.isMapLikeType()Z
      java.lang.NoSuchMethodError: org.codehaus.jackson.type.JavaType.isMapLikeType()Z
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._createDeserializer(StdDeserializerProvider.java:374)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerProvider.java:307)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCacheValueDeserializer(StdDeserializerProvider.java:287)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider.findValueDeserializer(StdDeserializerProvider.java:136)
              at org.codehaus.jackson.map.deser.StdDeserializer.findDeserializer(StdDeserializer.java:551)
              at org.codehaus.jackson.map.deser.BeanDeserializer.resolve(BeanDeserializer.java:268)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._resolveDeserializer(StdDeserializerProvider.java:404)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCache2(StdDeserializerProvider.java:349)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider._createAndCacheValueDeserializer(StdDeserializerProvider.java:287)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider.findValueDeserializer(StdDeserializerProvider.java:136)
              at org.codehaus.jackson.map.deser.StdDeserializerProvider.findTypedValueDeserializer(StdDeserializerProvider.java:157)
              at org.codehaus.jackson.map.ObjectMapper._findRootDeserializer(ObjectMapper.java:2468)
              at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2383)
              at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1094)
              at org.apache.hadoop.tools.rumen.JsonObjectMapperParser.getNext(JsonObjectMapperParser.java:84)
              at org.apache.hadoop.tools.rumen.ZombieJobProducer.getNextJob(ZombieJobProducer.java:117)
              at org.apache.hadoop.tools.rumen.ZombieJobProducer.getNextJob(ZombieJobProducer.java:29)
              at org.apache.hadoop.mapred.gridmix.TestGridmixSubmission.testTraceReader(TestGridmixSubmission.java:440)
      

        Activity

        Hide
        Jason Lowe added a comment -

        I suspect this is fixed by HADOOP-8104.

        Show
        Jason Lowe added a comment - I suspect this is fixed by HADOOP-8104 .
        Hide
        Ravi Gummadi added a comment -

        I replaced jackson-core-asl-1.7.1.jar with jackson-core-asl-1.8.8.jar in ~/.m2/.... and in ~/.ivy2/...
        This new jar is picked up and copied to build/ivy/lib/gridmix/test/ and used and the testcase passes.

        Show
        Ravi Gummadi added a comment - I replaced jackson-core-asl-1.7.1.jar with jackson-core-asl-1.8.8.jar in ~/.m2/.... and in ~/.ivy2/... This new jar is picked up and copied to build/ivy/lib/gridmix/test/ and used and the testcase passes.
        Hide
        Amar Kamat added a comment -

        I found some interesting link on this issue. Read http://stackoverflow.com/questions/6537287/jersey-and-jackson-maven-dependency-issues. It seems like Ravi replaced all the jackson-1.7.1 jars with jackson-1.8.8 in the build/ivy/lib/gridmix/test folder and found that this test passes. Actually he copied the jackson-1.8.8 as jackson1.7.1.

        Show
        Amar Kamat added a comment - I found some interesting link on this issue. Read http://stackoverflow.com/questions/6537287/jersey-and-jackson-maven-dependency-issues . It seems like Ravi replaced all the jackson-1.7.1 jars with jackson-1.8.8 in the build/ivy/lib/gridmix/test folder and found that this test passes. Actually he copied the jackson-1.8.8 as jackson1.7.1.
        Hide
        Amar Kamat added a comment -

        Gridmix depends on jackson 1.8. This dependency was introduced by MAPREDUCE-778. It seems like another version of jackson (probably jackson 1.7) is added to the classpath and is taking precedence. A quick search for this jackson version points to the hadoop-yarn folder. But I dont see any mention of jackson in hadoop-yarn.

        Show
        Amar Kamat added a comment - Gridmix depends on jackson 1.8 . This dependency was introduced by MAPREDUCE-778 . It seems like another version of jackson (probably jackson 1.7) is added to the classpath and is taking precedence. A quick search for this jackson version points to the hadoop-yarn folder. But I dont see any mention of jackson in hadoop-yarn .
        Amar Kamat created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Amar Kamat
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development