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

pig-user | Russell Jurney | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Re: Pig 0.14 - Download, no hadoop install, local mode doesn't work?

    pig-user | 2 years ago | Russell Jurney
    java.lang.IncompatibleClassChangeError: Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected
  2. 0

    Re: Pig 0.14 - Download, no hadoop install, local mode doesn't work?

    pig-user | 2 years ago | Russell Jurney
    java.lang.IncompatibleClassChangeError: Found class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was expected

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

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

      at org.apache.pig.piggybank.storage.XMLLoader$XMLRecordReader.initialize()
    2. org.apache.pig
      Main.main
      1. org.apache.pig.piggybank.storage.XMLLoader$XMLRecordReader.initialize(XMLLoader.java:102)
      2. org.apache.pig.impl.io.ReadToEndLoader.initializeReader(ReadToEndLoader.java:210)
      3. org.apache.pig.impl.io.ReadToEndLoader.getNextHelper(ReadToEndLoader.java:248)
      4. org.apache.pig.impl.io.ReadToEndLoader.getNext(ReadToEndLoader.java:229)
      5. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLoad.getNextTuple(POLoad.java:137)
      6. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:307)
      7. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLimit.getNextTuple(POLimit.java:122)
      8. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:307)
      9. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:246)
      10. org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator.processInput(PhysicalOperator.java:307)
      11. org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POStore.getNextTuple(POStore.java:159)
      12. org.apache.pig.backend.hadoop.executionengine.fetch.FetchLauncher.runPipeline(FetchLauncher.java:161)
      13. org.apache.pig.backend.hadoop.executionengine.fetch.FetchLauncher.launchPig(FetchLauncher.java:81)
      14. org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:278)
      15. org.apache.pig.PigServer.launchPlan(PigServer.java:1390)
      16. org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1375)
      17. org.apache.pig.PigServer.storeEx(PigServer.java:1034)
      18. org.apache.pig.PigServer.store(PigServer.java:997)
      19. org.apache.pig.PigServer.openIterator(PigServer.java:910)
      20. org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:746)
      21. org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:372)
      22. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:230)
      23. org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205)
      24. org.apache.pig.tools.grunt.Grunt.run(Grunt.java:66)
      25. org.apache.pig.Main.run(Main.java:558)
      26. org.apache.pig.Main.main(Main.java:170)
      26 frames