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

crunch-user | Aditi Viswanathan | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IncompatibleClassChangeError while running the crunch-examples job jar

    crunch-user | 2 years ago | Aditi Viswanathan
    java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
  2. 0

    RE: IncompatibleClassChangeError while running the crunch-examples job jar

    crunch-user | 2 years ago | Aditi Viswanathan
    java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

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

      at org.apache.crunch.impl.mr.run.CrunchInputFormat.getSplits()
    2. org.apache.crunch
      CrunchInputFormat.getSplits
      1. org.apache.crunch.impl.mr.run.CrunchInputFormat.getSplits(CrunchInputFormat.java:44)
      1 frame
    3. Hadoop
      Job$10.run
      1. org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:493)
      2. org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:510)
      3. org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:394)
      4. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1295)
      5. org.apache.hadoop.mapreduce.Job$10.run(Job.java:1292)
      5 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:1548)
      1 frame
    6. Hadoop
      Job.submit
      1. org.apache.hadoop.mapreduce.Job.submit(Job.java:1292)
      1 frame
    7. org.apache.crunch
      MRExecutor$1.run
      1. org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchControlledJob.submit(CrunchControlledJob.java:340)
      2. org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchJobControl.startReadyJobs(CrunchJobControl.java:277)
      3. org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchJobControl.pollJobStatusAndStartNewOnes(CrunchJobControl.java:316)
      4. org.apache.crunch.impl.mr.exec.MRExecutor.monitorLoop(MRExecutor.java:113)
      5. org.apache.crunch.impl.mr.exec.MRExecutor.access$000(MRExecutor.java:55)
      6. org.apache.crunch.impl.mr.exec.MRExecutor$1.run(MRExecutor.java:84)
      6 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame