Vishwesh Vinc created SPARK-34579:
-------------------------------------

             Summary: java.lang.NoSuchMethodError: 
org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.<init>
                 Key: SPARK-34579
                 URL: https://issues.apache.org/jira/browse/SPARK-34579
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.1
            Reporter: Vishwesh Vinc


Using Apache Spark 3.0 with Scala 2.12, and trying to submit a job, which reads 
from Azure Event Hub as binary encoded and then deserializes as protobuf 
generated class, then getting this error. The stack trace is follows:
{code:java}
java.lang.NoSuchMethodError: 
org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.<init>(Lorg/apache/spark/sql/types/StructType;ZLscala/collection/Seq;Lorg/apache/spark/sql/catalyst/expressions/Expression;Lscala/reflect/ClassTag;)V
        at 
frameless.TypedExpressionEncoder$.apply(TypedExpressionEncoder.scala:45)
        at 
scalapb.spark.Implicits.typedEncoderToEncoder(TypedEncoders.scala:125)
        at 
scalapb.spark.Implicits.typedEncoderToEncoder$(TypedEncoders.scala:122)
        at 
scalapb.spark.Implicits$.typedEncoderToEncoder(TypedEncoders.scala:128)
        at 
Utils.MessagingQueues.EventHubSourceReader$.editorialAdStream(EventHubSourceReader.scala:57)
        at 
Utils.MessagingQueues.SourceReader$.readEditorialAdSource(SourceReader.scala:39)
        at 
Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRTHelper$.fetchInputStream(UnifiedNRTHelper.scala:62)
        at 
Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT$.main(UnifiedNRT.scala:50)
        at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT.main(UnifiedNRT.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:775)


{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to