<?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 Delta Live Tables error with Kafka SSL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/45687#M27969</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;We have a spark streaming job that consumes data from a Kafka topic and writes out to delta tables in Unity Catalog.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Looking to refactor it to use Delta Live Tables, but it appears that it is not possible at present to have a DLT Pipeline that can access Unity Catalog, and authenticate with kafka over SSL.&lt;/P&gt;&lt;P&gt;Our code for establishing the readStream is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = (spark.readStream
    .format('kafka')
    .option('subscribe', _KAFKA_TOPIC)
    .option('kafka.bootstrap.servers', _KAFKA_BROKER)
    .option('kafka.security.protocol', 'SSL')
    .option('kafka.ssl.truststore.location', f'{_AUTH_KAFKA_URL}client.truststore.jks')
    .option('kafka.ssl.truststore.password', dbutils.secrets.get(scope='auth-secret-scope', key='kafka.ssl.truststore.password'))
    .option('kafka.ssl.truststore.type', 'JKS')
    .option('kafka.ssl.keystore.location', f'{_AUTH_KAFKA_URL}client.keystore.p12')
    .option('kafka.ssl.keystore.password', dbutils.secrets.get(scope='auth-secret-scope', key='kafka.ssl.keystore.password'))
    .option('kafka.ssl.keystore.type', 'PKCS12')
    .option('startingOffsets', 'earliest')
    .load()
    .withColumn('key', f.col('key').cast(t.StringType()))
    .withColumn('value', f.col('value').cast(t.StringType())))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;But running the pipeline results in the following error:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#800000"&gt;AnalysisException: [UNSUPPORTED_STREAMING_OPTIONS_PERMISSION_ENFORCED] Streaming options kafka.ssl.truststore.location, kafka.ssl.keystore.location are not supported for data source kafka on a shared cluster.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is it planned that in future DLT Pipelines might be able to be executed on something &lt;EM&gt;other&lt;/EM&gt; than a shared cluster and write to Unity Catalog? Or to support the &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;kafka.ssl.truststore.location and kafka.ssl.keystore.location options on shared clusters?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 15:54:44 GMT</pubDate>
    <dc:creator>mwoods</dc:creator>
    <dc:date>2023-09-22T15:54:44Z</dc:date>
    <item>
      <title>Delta Live Tables error with Kafka SSL</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/45687#M27969</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;We have a spark streaming job that consumes data from a Kafka topic and writes out to delta tables in Unity Catalog.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Looking to refactor it to use Delta Live Tables, but it appears that it is not possible at present to have a DLT Pipeline that can access Unity Catalog, and authenticate with kafka over SSL.&lt;/P&gt;&lt;P&gt;Our code for establishing the readStream is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = (spark.readStream
    .format('kafka')
    .option('subscribe', _KAFKA_TOPIC)
    .option('kafka.bootstrap.servers', _KAFKA_BROKER)
    .option('kafka.security.protocol', 'SSL')
    .option('kafka.ssl.truststore.location', f'{_AUTH_KAFKA_URL}client.truststore.jks')
    .option('kafka.ssl.truststore.password', dbutils.secrets.get(scope='auth-secret-scope', key='kafka.ssl.truststore.password'))
    .option('kafka.ssl.truststore.type', 'JKS')
    .option('kafka.ssl.keystore.location', f'{_AUTH_KAFKA_URL}client.keystore.p12')
    .option('kafka.ssl.keystore.password', dbutils.secrets.get(scope='auth-secret-scope', key='kafka.ssl.keystore.password'))
    .option('kafka.ssl.keystore.type', 'PKCS12')
    .option('startingOffsets', 'earliest')
    .load()
    .withColumn('key', f.col('key').cast(t.StringType()))
    .withColumn('value', f.col('value').cast(t.StringType())))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;But running the pipeline results in the following error:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" color="#800000"&gt;AnalysisException: [UNSUPPORTED_STREAMING_OPTIONS_PERMISSION_ENFORCED] Streaming options kafka.ssl.truststore.location, kafka.ssl.keystore.location are not supported for data source kafka on a shared cluster.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is it planned that in future DLT Pipelines might be able to be executed on something &lt;EM&gt;other&lt;/EM&gt; than a shared cluster and write to Unity Catalog? Or to support the &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;kafka.ssl.truststore.location and kafka.ssl.keystore.location options on shared clusters?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:54:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/45687#M27969</guid>
      <dc:creator>mwoods</dc:creator>
      <dc:date>2023-09-22T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables error with Kafka SSL</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/48523#M28317</link>
      <description>&lt;P&gt;Hello, I believe this is already worked on and should be in the next release for DLT pipelines.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 00:07:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/48523#M28317</guid>
      <dc:creator>Harrison_S</dc:creator>
      <dc:date>2023-10-06T00:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables error with Kafka SSL</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/53112#M29688</link>
      <description>&lt;P&gt;Indeed its already patched. you just have to configure your pipeline on the "preview" channel.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:03:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-error-with-kafka-ssl/m-p/53112#M29688</guid>
      <dc:creator>gabriall</dc:creator>
      <dc:date>2023-11-20T11:03:38Z</dc:date>
    </item>
  </channel>
</rss>

