java.lang.reflect.InvocationTargetException

GitHub | rajagopalanseeth | 7 months 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.

Root Cause Analysis

  1. java.lang.NoSuchMethodError

    org.apache.spark.sql.types.DecimalType.<init>(II)V

    at org.apache.spark.sql.cassandra.DataTypeConverter$.<init>()
  2. spark-cassandra-connector
    CassandraSourceRelation$$anonfun$schema$1$$anonfun$apply$1.apply
    1. org.apache.spark.sql.cassandra.DataTypeConverter$.<init>(DataTypeConverter.scala:29)
    2. org.apache.spark.sql.cassandra.DataTypeConverter$.<clinit>(DataTypeConverter.scala)
    3. org.apache.spark.sql.cassandra.CassandraSourceRelation$$anonfun$schema$1$$anonfun$apply$1.apply(CassandraSourceRelation.scala:53)
    4. org.apache.spark.sql.cassandra.CassandraSourceRelation$$anonfun$schema$1$$anonfun$apply$1.apply(CassandraSourceRelation.scala:53)
    4 frames
  3. Scala
    AbstractTraversable.map
    1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
    3. scala.collection.Iterator$class.foreach(Iterator.scala:727)
    4. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
    5. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
    6. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
    7. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
    8. scala.collection.AbstractTraversable.map(Traversable.scala:105)
    8 frames
  4. spark-cassandra-connector
    CassandraSourceRelation$$anonfun$schema$1.apply
    1. org.apache.spark.sql.cassandra.CassandraSourceRelation$$anonfun$schema$1.apply(CassandraSourceRelation.scala:53)
    2. org.apache.spark.sql.cassandra.CassandraSourceRelation$$anonfun$schema$1.apply(CassandraSourceRelation.scala:53)
    2 frames
  5. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:120)
    1 frame
  6. spark-cassandra-connector
    CassandraSourceRelation.schema
    1. org.apache.spark.sql.cassandra.CassandraSourceRelation.schema(CassandraSourceRelation.scala:53)
    1 frame
  7. Spark Project SQL
    DataFrameReader.load
    1. org.apache.spark.sql.sources.LogicalRelation.<init>(LogicalRelation.scala:30)
    2. org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:120)
    2 frames
  8. 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:497)
    4 frames
  9. org.apache.spark
    CSharpBackendHandler.channelRead0
    1. org.apache.spark.api.csharp.CSharpBackendHandler.handleMethodCall(CSharpBackendHandler.scala:156)
    2. org.apache.spark.api.csharp.CSharpBackendHandler.handleBackendRequest(CSharpBackendHandler.scala:103)
    3. org.apache.spark.api.csharp.CSharpBackendHandler.channelRead0(CSharpBackendHandler.scala:30)
    4. org.apache.spark.api.csharp.CSharpBackendHandler.channelRead0(CSharpBackendHandler.scala:27)
    4 frames
  10. Netty
    DefaultThreadFactory$DefaultRunnableDecorator.run
    1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
    5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    7. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)
    8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
    9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
    10. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
    11. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)
    12. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
    13. io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
    14. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
    15. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
    16. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
    17. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
    17 frames
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame