java.lang.NoClassDefFoundError: Could not initialize class com.twitter.ambrose.util.JSONUtil

GitHub | shashank-expedia | 9 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

    Issue while writing JSON to the file using ambrose-hive

    GitHub | 9 months ago | shashank-expedia
    java.lang.NoClassDefFoundError: Could not initialize class com.twitter.ambrose.util.JSONUtil

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class com.twitter.ambrose.util.JSONUtil

      at com.twitter.ambrose.model.Event.toJson()
    2. com.twitter.ambrose
      AmbroseHiveFailHook.run
      1. com.twitter.ambrose.model.Event.toJson(Event.java:81)
      2. com.twitter.ambrose.service.impl.InMemoryStatsService.writeJsonEventToDisk(InMemoryStatsService.java:169)
      3. com.twitter.ambrose.service.impl.InMemoryStatsService.pushEvent(InMemoryStatsService.java:132)
      4. com.twitter.ambrose.hive.reporter.AmbroseHiveProgressReporter.pushEvent(AmbroseHiveProgressReporter.java:173)
      5. com.twitter.ambrose.hive.AmbroseHiveFailHook.run(AmbroseHiveFailHook.java:75)
      5 frames
    3. Hive Query Language
      Driver.run
      1. org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1411)
      2. org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1179)
      3. org.apache.hadoop.hive.ql.Driver.run(Driver.java:1006)
      4. org.apache.hadoop.hive.ql.Driver.run(Driver.java:996)
      4 frames
    4. org.apache.hadoop
      CliDriver.main
      1. org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:247)
      2. org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:199)
      3. org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:410)
      4. org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:345)
      5. org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:443)
      6. org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:459)
      7. org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)
      8. org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
      9. org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
      9 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. Hadoop
      RunJar.main
      1. org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      2. org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      2 frames