java.lang.NoSuchMethodError: org.apache.hadoop.mapreduce.Job.setJar(Ljava/lang/String;)V

Stack Overflow | William | 4 months 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

    Getting "NoSuchMethodError: org.apache.hadoop.mapreduce.Job.setJar" error when run mapreduce in Cloudera CDH 5.8

    Stack Overflow | 4 months ago | William
    java.lang.NoSuchMethodError: org.apache.hadoop.mapreduce.Job.setJar(Ljava/lang/String;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.hadoop.mapreduce.Job.setJar(Ljava/lang/String;)V

      at org.apache.kylin.engine.mr.common.AbstractHadoopJob.setJobClasspath()
    2. org.apache.kylin
      DefaultScheduler$JobRunner.run
      1. org.apache.kylin.engine.mr.common.AbstractHadoopJob.setJobClasspath(AbstractHadoopJob.java:163)
      2. org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:88)
      3. org.apache.kylin.engine.mr.MRUtil.runMRJob(MRUtil.java:88)
      4. org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:120)
      5. org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:112)
      6. org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:57)
      7. org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:112)
      8. org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:136)
      8 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames