<?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 Re: Spark Streaming with SASL_SSL Kafka  throwing java.nio.file.NoSuchFileException: dbfs:/mnt/**/kafka.client.truststore.imported.jks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15257#M9613</link>
    <description>&lt;P&gt;Thanks..Yes '/dbfs/mnt/xxxx/kafka.client.truststore.imported.jks'&amp;nbsp; path worked. &lt;/P&gt;&lt;P&gt;Also other workaround we got it working, is copy the file from s3 to filesystem using init script and use filepath.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 12:48:10 GMT</pubDate>
    <dc:creator>mj2022</dc:creator>
    <dc:date>2022-07-26T12:48:10Z</dc:date>
    <item>
      <title>Spark Streaming with SASL_SSL Kafka  throwing java.nio.file.NoSuchFileException: dbfs:/mnt/**/kafka.client.truststore.imported.jks</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15254#M9610</link>
      <description>&lt;P&gt;I testing Spark Streaming working  withSASL_SSL enabled kafka broker in a notebook.&lt;/P&gt;&lt;P&gt;as per this guide &lt;A href="https://docs.databricks.com/spark/latest/structured-streaming/kafka.html" target="test_blank"&gt;https://docs.databricks.com/spark/latest/structured-streaming/kafka.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have copied jsk files in an s3 bucket and mounted it in dbfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In notebook when i run dbutils.fs.head( jksPath), i can see file contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i run the spark streaming job throwing.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Caused by: java.nio.file.NoSuchFileException: dbfs:/mnt/xxxx/kafka.client.truststore.imported.jks
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.newByteChannel(Files.java:407)
	at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
	at java.nio.file.Files.newInputStream(Files.java:152)
	at kafkashaded.org.apache.kafka.common.security.ssl.DefaultSslEngineFactory$FileBasedStore.load(DefaultSslEngineFactory.java:370)kafkashaded.org.apache.kafka.common.security.ssl.SslFactory.instantiateSslEngineFactory(SslFactory.java:138)
	at kafkashaded.org.apache.kafka.common.security.ssl.SslFactory.configure(SslFactory.java:95)
	at kafkashaded.org.apache.kafka.common.network.SaslChannelBuilder.configure(SaslChannelBuilder.java:180)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also installed org.apache.spark:spark-sql-kafka-0-10_2.12:3.2.1 in databricks cluster.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 12:51:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15254#M9610</guid>
      <dc:creator>mj2022</dc:creator>
      <dc:date>2022-06-30T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming with SASL_SSL Kafka  throwing java.nio.file.NoSuchFileException: dbfs:/mnt/**/kafka.client.truststore.imported.jks</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15255#M9611</link>
      <description>&lt;P&gt;Looking into it.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 14:28:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15255#M9611</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-06-30T14:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Streaming with SASL_SSL Kafka  throwing java.nio.file.NoSuchFileException: dbfs:/mnt/**/kafka.client.truststore.imported.jks</title>
      <link>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15257#M9613</link>
      <description>&lt;P&gt;Thanks..Yes '/dbfs/mnt/xxxx/kafka.client.truststore.imported.jks'&amp;nbsp; path worked. &lt;/P&gt;&lt;P&gt;Also other workaround we got it working, is copy the file from s3 to filesystem using init script and use filepath.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:48:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/spark-streaming-with-sasl-ssl-kafka-throwing-java-nio-file/m-p/15257#M9613</guid>
      <dc:creator>mj2022</dc:creator>
      <dc:date>2022-07-26T12:48:10Z</dc:date>
    </item>
  </channel>
</rss>

