java.lang.reflect.InvocationTargetException

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

    Spark .toDF() returns linkage error : duplicate class definition

    Stack Overflow | 2 weeks ago | Mark Dendrix Garcia
    java.lang.RuntimeException: Failure loading MapRClient.
  2. 0

    java.lang.UnsatisfiedLinkError: MapRClient.dll: Can't find dependent libraries - MapR Answers

    mapr.com | 1 year ago
    java.lang.UnsatisfiedLinkError: C:\dev\mapr-win\hadoop\hadoop-0.20.2\lib\native\Windows_7-x86-32\MapRClient.dll: Can't find dependent libraries
  3. 0

    Adding Files view on Ambari 1.7.0: ClassNotFoundException

    Stack Overflow | 2 years ago | jnaour
    java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hdfs.web.WebHdfsFileSystem not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. r1chjames 1 times, last 3 months ago
  2. bmacedo 8 times, last 3 months ago
  3. aldrinleal 1 times, last 4 months ago
  4. ajinkya_w 96 times, last 4 months ago
  5. davidvanlaatum 176 times, last 5 months ago
16 more registered users
79 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.LinkageError

    loader (instance of org/apache/spark/sql/hive/client/IsolatedClientLoader$$anon$1): attempted duplicate class definition for name: "com/mapr/fs/shim/LibraryLoader"

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    Method.invoke
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    3. sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    4. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    5. java.lang.reflect.Method.invoke(Method.java:498)
    5 frames
  3. com.mapr.fs
    MapRFileSystem.<clinit>
    1. com.mapr.fs.ShimLoader.injectNativeLoader(ShimLoader.java:284)
    2. com.mapr.fs.ShimLoader.load(ShimLoader.java:223)
    3. com.mapr.fs.MapRFileSystem.<clinit>(MapRFileSystem.java:107)
    3 frames
  4. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:348)
    2 frames
  5. Hadoop
    FileSystem.newInstance
    1. org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2147)
    2. org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2112)
    3. org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2206)
    4. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2674)
    5. org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2687)
    6. org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:94)
    7. org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2723)
    8. org.apache.hadoop.fs.FileSystem$Cache.getUnique(FileSystem.java:2711)
    9. org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:454)
    10. org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:462)
    11. org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:444)
    11 frames
  6. Hive Shims
    Hadoop23Shims.getNonCachedFileSystem
    1. org.apache.hadoop.hive.shims.Hadoop23Shims.getNonCachedFileSystem(Hadoop23Shims.java:944)
    1 frame
  7. Hive Query Language
    SessionState.start
    1. org.apache.hadoop.hive.ql.exec.Utilities.createDirsWithPermission(Utilities.java:3687)
    2. org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:600)
    3. org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:554)
    4. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:508)
    4 frames
  8. org.apache.spark
    HiveClientImpl.<init>
    1. org.apache.spark.sql.hive.client.HiveClientImpl.<init>(HiveClientImpl.scala:189)
    1 frame
  9. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  10. org.apache.spark
    IsolatedClientLoader.createClient
    1. org.apache.spark.sql.hive.client.IsolatedClientLoader.createClient(IsolatedClientLoader.scala:258)
    1 frame
  11. Spark Project Hive
    HiveSessionState.analyzer
    1. org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:359)
    2. org.apache.spark.sql.hive.HiveUtils$.newClientForMetadata(HiveUtils.scala:263)
    3. org.apache.spark.sql.hive.HiveSharedState.metadataHive$lzycompute(HiveSharedState.scala:39)
    4. org.apache.spark.sql.hive.HiveSharedState.metadataHive(HiveSharedState.scala:38)
    5. org.apache.spark.sql.hive.HiveSharedState.externalCatalog$lzycompute(HiveSharedState.scala:46)
    6. org.apache.spark.sql.hive.HiveSharedState.externalCatalog(HiveSharedState.scala:45)
    7. org.apache.spark.sql.hive.HiveSessionState.catalog$lzycompute(HiveSessionState.scala:50)
    8. org.apache.spark.sql.hive.HiveSessionState.catalog(HiveSessionState.scala:48)
    9. org.apache.spark.sql.hive.HiveSessionState$$anon$1.<init>(HiveSessionState.scala:63)
    10. org.apache.spark.sql.hive.HiveSessionState.analyzer$lzycompute(HiveSessionState.scala:63)
    11. org.apache.spark.sql.hive.HiveSessionState.analyzer(HiveSessionState.scala:62)
    11 frames
  12. Spark Project SQL
    SQLImplicits.rddToDatasetHolder
    1. org.apache.spark.sql.execution.QueryExecution.assertAnalyzed(QueryExecution.scala:49)
    2. org.apache.spark.sql.Dataset.<init>(Dataset.scala:161)
    3. org.apache.spark.sql.Dataset.<init>(Dataset.scala:167)
    4. org.apache.spark.sql.Dataset$.apply(Dataset.scala:59)
    5. org.apache.spark.sql.SparkSession.createDataset(SparkSession.scala:441)
    6. org.apache.spark.sql.SQLContext.createDataset(SQLContext.scala:395)
    7. org.apache.spark.sql.SQLImplicits.rddToDatasetHolder(SQLImplicits.scala:163)
    7 frames
  13. $line30
    $eval.$print
    1. $line30.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:35)
    2. $line30.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:40)
    3. $line30.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:42)
    4. $line30.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:44)
    5. $line30.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:46)
    6. $line30.$read$$iw$$iw$$iw$$iw$$iw.<init>(<console>:48)
    7. $line30.$read$$iw$$iw$$iw$$iw.<init>(<console>:50)
    8. $line30.$read$$iw$$iw$$iw.<init>(<console>:52)
    9. $line30.$read$$iw$$iw.<init>(<console>:54)
    10. $line30.$read$$iw.<init>(<console>:56)
    11. $line30.$read.<init>(<console>:58)
    12. $line30.$read$.<init>(<console>:62)
    13. $line30.$read$.<clinit>(<console>)
    14. $line30.$eval$.$print$lzycompute(<console>:7)
    15. $line30.$eval$.$print(<console>:6)
    16. $line30.$eval.$print(<console>)
    16 frames
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  15. Scala Compiler
    IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply
    1. scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:786)
    2. scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:1047)
    3. scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:638)
    4. scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:637)
    4 frames
  16. Scala
    AbstractFileClassLoader.asContext
    1. scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
    2. scala.reflect.internal.util.AbstractFileClassLoader.asContext(AbstractFileClassLoader.scala:19)
    2 frames
  17. Scala Compiler
    ILoop$$anonfun$process$1.apply
    1. scala.tools.nsc.interpreter.IMain$WrappedRequest.loadAndRunReq(IMain.scala:637)
    2. scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:569)
    3. scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:565)
    4. scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:807)
    5. scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:681)
    6. scala.tools.nsc.interpreter.ILoop.processLine(ILoop.scala:395)
    7. scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:415)
    8. scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:923)
    9. scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:909)
    10. scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:909)
    10 frames
  18. Scala
    ScalaClassLoader$.savingContextLoader
    1. scala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:97)
    1 frame
  19. Scala Compiler
    ILoop.process
    1. scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:909)
    1 frame
  20. Spark REPL
    Main.main
    1. org.apache.spark.repl.Main$.doMain(Main.scala:68)
    2. org.apache.spark.repl.Main$.main(Main.scala:51)
    3. org.apache.spark.repl.Main.main(Main.scala)
    3 frames
  21. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  22. Spark
    SparkSubmit.main
    1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:736)
    2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:185)
    3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:210)
    4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:124)
    5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    5 frames