<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Databricks + confluent schema registry - Schema not found error in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/databricks-confluent-schema-registry-schema-not-found-error/m-p/71594#M7371</link>
    <description>&lt;P&gt;I am running a Kafka producer code on Databricks 12.2. I am testing AVRO serialization of message with help of confluent schema registry. I configured 'to_avro' function to read the schema from schema registry, but I am getting the below error&lt;/P&gt;&lt;P&gt;&amp;gt; org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 99.0 failed 4 times, most recent failure: Lost task 0.3 in stage 99.0 (TID 125) (10.52.30.102 executor 0): org.spark_project.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Schema not found; error code: 40403&lt;/P&gt;&lt;P&gt;df_tpch_orders.withColumn("value",to_avro(&lt;BR /&gt;data = df_tpch_orders.o_comment,&lt;BR /&gt;options = schema_registry_options,&lt;BR /&gt;schemaRegistryAddress = schema_registry_address,&lt;BR /&gt;subject = F.lit("demo-topic-value"),&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;The code works when I pass the avro schema instead of reading from the schema registry. I also confirmed that the scheme is present under the correct subject name.&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://stackoverflow.com/questions/54230627/kafka-sink-connector-fails-schema-not-found-error-code-40403" target="_self"&gt;this&lt;/A&gt; , which says the it might be because the data is incompatible with the provided schema in a data but this is not true in my case because when I hardcode (or read the schema manually from using confluent API) works.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 12:33:45 GMT</pubDate>
    <dc:creator>ravitejasutrave</dc:creator>
    <dc:date>2024-06-04T12:33:45Z</dc:date>
    <item>
      <title>Databricks + confluent schema registry - Schema not found error</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-confluent-schema-registry-schema-not-found-error/m-p/71594#M7371</link>
      <description>&lt;P&gt;I am running a Kafka producer code on Databricks 12.2. I am testing AVRO serialization of message with help of confluent schema registry. I configured 'to_avro' function to read the schema from schema registry, but I am getting the below error&lt;/P&gt;&lt;P&gt;&amp;gt; org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 99.0 failed 4 times, most recent failure: Lost task 0.3 in stage 99.0 (TID 125) (10.52.30.102 executor 0): org.spark_project.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Schema not found; error code: 40403&lt;/P&gt;&lt;P&gt;df_tpch_orders.withColumn("value",to_avro(&lt;BR /&gt;data = df_tpch_orders.o_comment,&lt;BR /&gt;options = schema_registry_options,&lt;BR /&gt;schemaRegistryAddress = schema_registry_address,&lt;BR /&gt;subject = F.lit("demo-topic-value"),&lt;BR /&gt;))&lt;/P&gt;&lt;P&gt;The code works when I pass the avro schema instead of reading from the schema registry. I also confirmed that the scheme is present under the correct subject name.&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://stackoverflow.com/questions/54230627/kafka-sink-connector-fails-schema-not-found-error-code-40403" target="_self"&gt;this&lt;/A&gt; , which says the it might be because the data is incompatible with the provided schema in a data but this is not true in my case because when I hardcode (or read the schema manually from using confluent API) works.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 12:33:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-confluent-schema-registry-schema-not-found-error/m-p/71594#M7371</guid>
      <dc:creator>ravitejasutrave</dc:creator>
      <dc:date>2024-06-04T12:33:45Z</dc:date>
    </item>
  </channel>
</rss>

