java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0000000: 2a2b b200 03b8 0004 b0

Stack Overflow | H'shah | 1 year 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

    why am I getting this exception while importing data from oracle to hdfs?

    Stack Overflow | 1 year ago | H'shah
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0000000: 2a2b b200 03b8 0004 b0
  2. 0

    java.lang.VerifyError with Hadoop

    Stack Overflow | 2 years ago
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0000000: 2a2b b200 03b8 0004 b0
  3. 0

    Exception in thread "main" java.lang.VerifyError: Bad type on operand stack

    Stack Overflow | 2 years ago | Manish Bhadani
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0000000: 2a2b b200 03b8 0004 b0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Execption in thread main : java.lang.verifyError

    Stack Overflow | 1 day ago | Salma Hakim
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0x0000000: 2a2b b200 03b8 0004 b0
  6. 0

    When I run kite-dataset from the tarball bundle, it fails when importing local data using the LocalJobRunner with a VerifyError: {code} blue@work:~/tmp$ kite-dataset json-import movies.json dataset:file:data/movies_avro/ Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in thread "Thread-6" java.lang.VerifyError: Bad return type Exception Details: Location: org/apache/hadoop/mapred/LocalJobRunner.submitJob(Lorg/apache/hadoop/mapreduce/JobID;Ljava/lang/String;Lorg/apache/hadoop/security/Credentials;)Lorg/apache/hadoop/mapreduce/JobStatus; @29: areturn Reason: Type 'org/apache/hadoop/mapred/JobStatus' (current frame, stack[0]) is not assignable to 'org/apache/hadoop/mapreduce/JobStatus' (from method signature) Current Frame: bci: @29 flags: { } locals: { 'org/apache/hadoop/mapred/LocalJobRunner', 'org/apache/hadoop/mapreduce/JobID', 'java/lang/String', 'org/apache/hadoop/security/Credentials', 'org/apache/hadoop/mapred/LocalJobRunner$Job' } stack: { 'org/apache/hadoop/mapred/JobStatus' } Bytecode: 0000000: bb00 2259 2a2b b800 232c b700 243a 0419 0000010: 04b8 0025 2db6 0026 1904 b800 27b0 at org.apache.hadoop.mapred.JobClient.init(JobClient.java:548) at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:520) at org.apache.hadoop.mapreduce.Job$1.run(Job.java:595) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671) at org.apache.hadoop.mapreduce.Job.connect(Job.java:593) at org.apache.hadoop.mapreduce.Job.submit(Job.java:581) at org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchControlledJob.submit(CrunchControlledJob.java:329) at org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchJobControl.startReadyJobs(CrunchJobControl.java:204) at org.apache.crunch.hadoop.mapreduce.lib.jobcontrol.CrunchJobControl.pollJobStatusAndStartNewOnes(CrunchJobControl.java:238) at org.apache.crunch.impl.mr.exec.MRExecutor.monitorLoop(MRExecutor.java:112) at org.apache.crunch.impl.mr.exec.MRExecutor.access$000(MRExecutor.java:55) at org.apache.crunch.impl.mr.exec.MRExecutor$1.run(MRExecutor.java:83) at java.lang.Thread.run(Thread.java:745) Unknown error: null 2015-06-25 15:13:33 PDT {code} It looks like the problem is that both mr1 and yarn jars are present and the classes are getting mixed together. *The work-around is to remove the mr1 jars from the lib directory*. The mr1 jars are being pulled in transitively through HBase, so we need to add exclusions for hadoop-core. It should be provided by the kite-hadoop-dependencies packages anyway.

    Cloudera Open Source | 2 years ago | Ryan Blue
    java.lang.VerifyError: Bad return type Exception Details: Location: org/apache/hadoop/mapred/LocalJobRunner.submitJob(Lorg/apache/hadoop/mapreduce/JobID;Ljava/lang/String;Lorg/apache/hadoop/security/Credentials;)Lorg/apache/hadoop/mapreduce/JobStatus; @29: areturn Reason: Type 'org/apache/hadoop/mapred/JobStatus' (current frame, stack[0]) is not assignable to 'org/apache/hadoop/mapreduce/JobStatus' (from method signature) Current Frame: bci: @29 flags: { } locals: { 'org/apache/hadoop/mapred/LocalJobRunner', 'org/apache/hadoop/mapreduce/JobID', 'java/lang/String', 'org/apache/hadoop/security/Credentials', 'org/apache/hadoop/mapred/LocalJobRunner$Job' } stack: { 'org/apache/hadoop/mapred/JobStatus' } Bytecode: 0000000: bb00 2259 2a2b b800 232c b700 243a 0419 0000010: 04b8 0025 2db6 0026 1904 b800 27b0

    3 unregistered visitors

    Root Cause Analysis

    1. java.lang.VerifyError

      Bad type on operand stack Exception Details: Location: org/apache/hadoop/mapred/JobTrackerInstrumentation.create(Lorg/apache/hadoop/mapred/JobTracker;Lorg/apache/hadoop/mapred/JobConf;)Lorg/apache/hadoop/mapred/JobTrackerInstrumentation; @5: invokestatic Reason: Type 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' (current frame, stack[2]) is not assignable to 'org/apache/hadoop/metrics2/MetricsSystem' Current Frame: bci: @5 flags: { } locals: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf' } stack: { 'org/apache/hadoop/mapred/JobTracker', 'org/apache/hadoop/mapred/JobConf', 'org/apache/hadoop/metrics2/lib/DefaultMetricsSystem' } Bytecode: 0000000: 2a2b b200 03b8 0004 b0

      at org.apache.hadoop.mapred.LocalJobRunner.<init>()
    2. Hadoop
      Job$1.run
      1. org.apache.hadoop.mapred.LocalJobRunner.<init>(LocalJobRunner.java:420)
      2. org.apache.hadoop.mapred.JobClient.init(JobClient.java:472)
      3. org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:457)
      4. org.apache.hadoop.mapreduce.Job$1.run(Job.java:513)
      4 frames
    3. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:415)
      2 frames
    4. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
      1 frame
    5. Hadoop
      Job.waitForCompletion
      1. org.apache.hadoop.mapreduce.Job.connect(Job.java:511)
      2. org.apache.hadoop.mapreduce.Job.submit(Job.java:499)
      3. org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:530)
      3 frames
    6. org.apache.sqoop
      Sqoop.run
      1. org.apache.sqoop.mapreduce.ImportJobBase.doSubmitJob(ImportJobBase.java:186)
      2. org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:159)
      3. org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:247)
      4. org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:665)
      5. org.apache.sqoop.manager.OracleManager.importTable(OracleManager.java:444)
      6. org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)
      7. org.apache.sqoop.tool.ImportTool.run(ImportTool.java:601)
      8. org.apache.sqoop.Sqoop.run(Sqoop.java:143)
      8 frames
    7. Hadoop
      ToolRunner.run
      1. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      1 frame
    8. org.apache.sqoop
      Sqoop.main
      1. org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
      2. org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
      3. org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
      4. org.apache.sqoop.Sqoop.main(Sqoop.java:236)
      4 frames