java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.Counter, but class was expected

Google Groups | Junhui Li | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    errors while running thrax on a machine with hadoop installation

    Google Groups | 3 years ago | Junhui Li
    java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.Counter, but class was expected

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      Found interface org.apache.hadoop.mapreduce.Counter, but class was expected

      at edu.jhu.thrax.hadoop.features.WordLexicalProbabilityCalculator$Map.map()
    2. edu.jhu.thrax
      WordLexicalProbabilityCalculator$Map.map
      1. edu.jhu.thrax.hadoop.features.WordLexicalProbabilityCalculator$Map.map(WordLexicalProbabilityCalculator.java:56)
      2. edu.jhu.thrax.hadoop.features.WordLexicalProbabilityCalculator$Map.map(WordLexicalProbabilityCalculator.java:28)
      2 frames
    3. Hadoop
      YarnChild$2.run
      1. org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
      2. org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:756)
      3. org.apache.hadoop.mapred.MapTask.run(MapTask.java:338)
      4. org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:157)
      4 frames
    4. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:415)
      2 frames
    5. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1408)
      1 frame
    6. Hadoop
      YarnChild.main
      1. org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:152)
      1 frame