<?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 Connector Issue in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4065921#M3315</link>
    <description>&lt;P&gt;Can someone please shed some light on this topic as to how can I debug this connector?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 01:58:55 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2024-07-29T01:58:55Z</dc:date>
    <item>
      <title>Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4052913#M3182</link>
      <description>&lt;P&gt;I am constatntly getting errors when I am trying the following in a notebook (Prod_dw.dbo.factSales is the 3 part name of a Fabric data warehouse table). This notebook is mounted to a lakehouse and DW is not shortcuted to lakehouse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smpa01_0-1721617731574.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1136059i784A755CEC1CA143/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smpa01_0-1721617731574.png" alt="smpa01_0-1721617731574.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;following the Spark Connector documentation (The doc does not mention any shortcuting of DW to LH as a pre req)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smpa01_1-1721617825716.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1136060i1584F6439C2D7CC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smpa01_1-1721617825716.png" alt="smpa01_1-1721617825716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how can I debug this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 03:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4052913#M3182</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-07-22T03:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4053101#M3183</link>
      <description>&lt;P&gt;Is your notebook's default Lakehouse in the same workspace as the Prod_dw?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, or if your notebook doesn't have a default Lakehouse (look for the pin symbol), then I guess that could be the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried to use the following code for reading data across workspaces (I guess it could work also within the same workspace):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector#read-data-across-workspaces" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector#read-data-across-workspaces&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 05:45:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4053101#M3183</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-22T05:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4054054#M3196</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Is your notebook's default Lakehouse in the same workspace as the Prod_dw?&lt;/STRONG&gt; - yes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if not, or if your notebook doesn't have a default Lakehouse (look for the pin symbol),&lt;/STRONG&gt; - yes ; I already mentioned that that notebook is mounted to a lakehouse (LH resides in the same WS as DW)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Have you tried to use the following code for reading data across workspaces&lt;/STRONG&gt; - yes, gives following error&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;: value synapsesql is not a member of org.apache.spark.sql.DataFrameReader&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 18:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4054054#M3196</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-07-22T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4054161#M3198</link>
      <description>&lt;P&gt;I tried myself now, and I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Request to read failed. Reason - HTTP request forbidden.
com.microsoft.spark.fabric.tds.error.FabricSparkTDSInternalAuthError: HTTP request forbidden.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am not able to use it myself either.&lt;BR /&gt;But to be honest I don't have experience with Scala, so perhaps I did something wrong in my code, I don't know. I tried to follow this page:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/spark-data-warehouse-connector#read-data-within-the-same-workspace" target="_blank" rel="noopener"&gt;Spark connector for Microsoft Fabric Synapse Data Warehouse - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cell 1 (runs fine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%spark
import com.microsoft.spark.fabric.tds.implicits.read.FabricSparkTDSImplicits._
import org.apache.spark.sql.functions._&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cell 2 (gives the error when I run this cell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%spark
val df = spark.read.synapsesql("TestWarehouse.dbo.customer_dimension")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried this&lt;/P&gt;&lt;P&gt;Cell 3 (gives the same error when I run this cell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%%spark
import com.microsoft.spark.fabric.Constants
val df = spark.read.option(Constants.WorkspaceId, "550e8400-e29b-41d4-a716-446655440000").synapsesql("testwarehouse.dbo.customer_dimension")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my table in the Fabric Warehouse. It's in the same workspace as the Lakehouse which is the Default lakehouse of my Notebook.&lt;/P&gt;&lt;P&gt;So this is the table I am trying to read in a Notebook by using the Spark connector for Microsoft Fabric Synapse Data Warehouse, but I am getting the error message as mentioned above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="frithjof_v_0-1721658083678.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1136486iB79AEC4F13AADD6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="frithjof_v_0-1721658083678.png" alt="frithjof_v_0-1721658083678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the user who created (and therefore also admin) of the workspace, the lakehouse and the warehouse.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 14:30:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4054161#M3198</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-22T14:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4065921#M3315</link>
      <description>&lt;P&gt;Can someone please shed some light on this topic as to how can I debug this connector?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 01:58:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4065921#M3315</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-07-29T01:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4106717#M3667</link>
      <description>&lt;P&gt;Did you manage to get this to work? I'm running into the same errors with the same setup.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 10:44:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4106717#M3667</guid>
      <dc:creator>Luuk_J</dc:creator>
      <dc:date>2024-08-19T10:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4106919#M3671</link>
      <description>&lt;P&gt;I did not make any progress, let me know if you make any. I wonder if MS is yet to ship this.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:17:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4106919#M3671</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-08-19T13:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4109125#M3694</link>
      <description>&lt;P&gt;Too bad, I will keep you updated!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:13:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4109125#M3694</guid>
      <dc:creator>Luuk_J</dc:creator>
      <dc:date>2024-08-20T12:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Connector Issue</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4115308#M3737</link>
      <description>&lt;P&gt;Well, I tried again and everything seems to work fine now&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;BR /&gt;I guess they fixed it, tried restarting sessions and it still works.&lt;BR /&gt;&lt;BR /&gt;The statements in my notebook:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Luuk_J_1-1724401776198.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1156119i90074408A73CA43F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Luuk_J_1-1724401776198.png" alt="Luuk_J_1-1724401776198.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 08:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Spark-Connector-Issue/m-p/4115308#M3737</guid>
      <dc:creator>Luuk_J</dc:creator>
      <dc:date>2024-08-23T08:29:55Z</dc:date>
    </item>
  </channel>
</rss>

