<?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 Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32691#M23831</link>
    <description>&lt;P&gt;Below function executes fine: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def autoload_to_table(data_source, source_format, table_name, checkpoint_directory):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;query = (spark.readStream&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.format("cloudFiles")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("cloudFiles.format", source_format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("cloudFiles.schemaLocation", checkpoint_directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.load(data_source)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.writeStream&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("checkpointLocation", checkpoint_directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("mergeSchema", "true")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.table(table_name))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;return query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving Error while calling  function. Please let me know where is the problem. &lt;span class="lia-inline-image-display-wrapper" image-alt="I have verified that source data exists."&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1535i31F82D2581B3AA11/image-size/large?v=v2&amp;amp;px=999" role="button" title="I have verified that source data exists." alt="I have verified that source data exists." /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 08:31:35 GMT</pubDate>
    <dc:creator>LearnerShahid</dc:creator>
    <dc:date>2022-09-02T08:31:35Z</dc:date>
    <item>
      <title>Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32691#M23831</link>
      <description>&lt;P&gt;Below function executes fine: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def autoload_to_table(data_source, source_format, table_name, checkpoint_directory):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;query = (spark.readStream&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.format("cloudFiles")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("cloudFiles.format", source_format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("cloudFiles.schemaLocation", checkpoint_directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.load(data_source)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.writeStream&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("checkpointLocation", checkpoint_directory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.option("mergeSchema", "true")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.table(table_name))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;return query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving Error while calling  function. Please let me know where is the problem. &lt;span class="lia-inline-image-display-wrapper" image-alt="I have verified that source data exists."&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1535i31F82D2581B3AA11/image-size/large?v=v2&amp;amp;px=999" role="button" title="I have verified that source data exists." alt="I have verified that source data exists." /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 08:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32691#M23831</guid>
      <dc:creator>LearnerShahid</dc:creator>
      <dc:date>2022-09-02T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32692#M23832</link>
      <description>&lt;P&gt;Hi @Shahid Akhter​&amp;nbsp;could you please copy the full error stack and paste it here.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 08:33:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32692#M23832</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-09-02T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32693#M23833</link>
      <description>&lt;P&gt;java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Py4JJavaError                             Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;&amp;lt;command-1919808831305181&amp;gt; in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;----&amp;gt; 1 query = autoload_to_table(data_source = f"{DA.paths.working_dir}/tracker",&lt;/P&gt;&lt;P&gt;      2                           source_format = "json",&lt;/P&gt;&lt;P&gt;      3                           table_name = "target_table",&lt;/P&gt;&lt;P&gt;      4                           checkpoint_directory = f"{DA.paths.checkpoints}/target_table")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;command-1919808831305179&amp;gt; in autoload_to_table(data_source, source_format, table_name, checkpoint_directory)&lt;/P&gt;&lt;P&gt;      1 def autoload_to_table(data_source, source_format, table_name, checkpoint_directory):&lt;/P&gt;&lt;P&gt;----&amp;gt; 2     query = (spark.readStream&lt;/P&gt;&lt;P&gt;      3                   .format("cloudFiles")&lt;/P&gt;&lt;P&gt;      4                   .option("cloudFiles.format", source_format)&lt;/P&gt;&lt;P&gt;      5                   .option("cloudFiles.schemaLocation", checkpoint_directory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/databricks/spark/python/pyspark/sql/streaming.py in load(self, path, format, schema, **options)&lt;/P&gt;&lt;P&gt;    450                 raise ValueError("If the path is provided for stream, it needs to be a " +&lt;/P&gt;&lt;P&gt;    451                                  "non-empty string. List of paths are not supported.")&lt;/P&gt;&lt;P&gt;--&amp;gt; 452             return self._df(self._jreader.load(path))&lt;/P&gt;&lt;P&gt;    453         else:&lt;/P&gt;&lt;P&gt;    454             return self._df(self._jreader.load())&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 08:52:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32693#M23833</guid>
      <dc:creator>LearnerShahid</dc:creator>
      <dc:date>2022-09-02T08:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32694#M23834</link>
      <description>&lt;P&gt;Hi @LearnerShahid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested this on my own environment and I am able to reproduce this as well when I'm using DBR 7.3. Could you please try DBR 10.4+ and see if that solves the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:45:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32694#M23834</guid>
      <dc:creator>Cedric</dc:creator>
      <dc:date>2022-09-02T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32695#M23835</link>
      <description>&lt;P&gt;Hi Cedric/Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Databricks Community Edition - 10.4 LTS (includes Apache Spark 3.2.1, Scala 2.12).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please confirm if you have tried on Community Edition? As per details on Community Edition Cluster Environment Details, it runs on DBFSV1 (screenshot attached) and not the latest DBFSV2. In case, this is an issue due to DBFV1 and DBFSV2, kindly let me know how to fix this as this is causing issues in the subsequent lessons using Spark Streaming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, I have tried multiple times to execute the code by creating different clusters and it still shows the same error.&lt;span class="lia-inline-image-display-wrapper" image-alt="ENVvariables"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1538iCFC5D0B84CD33288/image-size/large?v=v2&amp;amp;px=999" role="button" title="ENVvariables" alt="ENVvariables" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 15:19:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32695#M23835</guid>
      <dc:creator>LearnerShahid</dc:creator>
      <dc:date>2022-09-02T15:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32696#M23836</link>
      <description>&lt;P&gt;Autoloader is not supported on community edition.  &lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 11:48:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32696#M23836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-05T11:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 6.1 of Data Engineering. Error when reading stream - 
java.lang.UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)</title>
      <link>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32697#M23837</link>
      <description>&lt;P&gt;Thank you for sharing this. I will mark this as the best response of this thread&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 23:21:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/lesson-6-1-of-data-engineering-error-when-reading-stream-java/m-p/32697#M23837</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-09-09T23:21:43Z</dc:date>
    </item>
  </channel>
</rss>

