<?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 issue while running Fabric notebook in VScode in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4027129#M2863</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to take workspace name, for that I need to install&amp;nbsp;&lt;STRONG&gt;semantic&lt;/STRONG&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;STRONG&gt;link&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I ran &lt;STRONG&gt;pip install semantic&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;link&lt;/STRONG&gt; in first cell and&lt;BR /&gt;&lt;BR /&gt;in next cell I am running&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;types&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;StructType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;StructField&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IntegerType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BooleanType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;StringType&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;functions&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;col&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;current_date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;import sempy.fabric as fabric&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;datetime&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;datetime&lt;BR /&gt;&lt;BR /&gt;I am getting error for&amp;nbsp;&lt;STRONG&gt;import sempy.fabric as fabric&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Aslo I am getting below error:&lt;BR /&gt;&lt;SPAN class=""&gt;---&amp;gt; &lt;A target="_blank" rel="noopener"&gt;2&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;azure&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;core&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;credentials&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; AccessToken &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;3&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;azure&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;storage&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;blob&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; BlobServiceClient &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;4&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;typing&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; List, Optional, Union &lt;/SPAN&gt;&lt;SPAN class=""&gt;ModuleNotFoundError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: No module named 'azure'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Even if try to read data from abffs&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Initialize Spark session&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;builder&lt;/SPAN&gt;&lt;SPAN&gt;.appName(&lt;/SPAN&gt;&lt;SPAN&gt;"MergeWithRowHash"&lt;/SPAN&gt;&lt;SPAN&gt;).getOrCreate()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.read.json(&lt;/SPAN&gt;&lt;SPAN&gt;'abfss://&amp;lt;adadasdd&amp;gt;@onelake.dfs.fabric.microsoft.com/adasdasdasdasdade-459b21ae93c2/Files/config.json'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;I am getting below error:&lt;BR /&gt;&lt;SPAN class=""&gt;File &lt;/SPAN&gt;&lt;SPAN class=""&gt;c:\Users\ryuser\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\lib\site-packages\py4j\protocol.py:326&lt;/SPAN&gt;&lt;SPAN class=""&gt;, in &lt;/SPAN&gt;&lt;SPAN class=""&gt;get_return_value&lt;/SPAN&gt;&lt;SPAN class=""&gt;(answer, gateway_client, target_id, name)&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;324&lt;/A&gt; value &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; OUTPUT_CONVERTER[&lt;/SPAN&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;SPAN class=""&gt;](answer[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN class=""&gt;:], gateway_client) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;325&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt; answer[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;==&lt;/SPAN&gt;&lt;SPAN class=""&gt; REFERENCE_TYPE: &lt;/SPAN&gt;&lt;SPAN class=""&gt;--&amp;gt; &lt;A target="_blank" rel="noopener"&gt;326&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;raise&lt;/SPAN&gt;&lt;SPAN class=""&gt; Py4JJavaError( &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;327&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;328&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;(target_id, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, name), value) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;329&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;330&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;raise&lt;/SPAN&gt;&lt;SPAN class=""&gt; Py4JError( &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;331&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;. Trace:&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;{3}&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;332&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;(target_id, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, name, value)) &lt;/SPAN&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: An error occurred while calling o36.json. :&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.azurebfs.SecureAzureBlobFileSystem not found at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2688) at&lt;/STRONG&gt;&lt;/FONT&gt; org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3431) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3466) at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:174) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3574) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3521) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:540) at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365) at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$1(DataSource.scala:724) at scala.collection.immutable.List.map(List.scala:293) at org.apache.spark.sql.execution.datasources.DataSource$.checkAndGlobPathIfNecessary(DataSource.scala:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 05 Jul 2024 13:58:18 GMT</pubDate>
    <dc:creator>riyajshaikh09</dc:creator>
    <dc:date>2024-07-05T13:58:18Z</dc:date>
    <item>
      <title>issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4027129#M2863</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I want to take workspace name, for that I need to install&amp;nbsp;&lt;STRONG&gt;semantic&lt;/STRONG&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;STRONG&gt;link&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I ran &lt;STRONG&gt;pip install semantic&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;link&lt;/STRONG&gt; in first cell and&lt;BR /&gt;&lt;BR /&gt;in next cell I am running&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;types&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;StructType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;StructField&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IntegerType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BooleanType&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;StringType&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;functions&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;col&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;current_date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;import sempy.fabric as fabric&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;datetime&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;datetime&lt;BR /&gt;&lt;BR /&gt;I am getting error for&amp;nbsp;&lt;STRONG&gt;import sempy.fabric as fabric&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Aslo I am getting below error:&lt;BR /&gt;&lt;SPAN class=""&gt;---&amp;gt; &lt;A target="_blank" rel="noopener"&gt;2&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;azure&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;core&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;credentials&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; AccessToken &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;3&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;azure&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;storage&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;blob&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; BlobServiceClient &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;4&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;typing&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt; List, Optional, Union &lt;/SPAN&gt;&lt;SPAN class=""&gt;ModuleNotFoundError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: No module named 'azure'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Even if try to read data from abffs&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;pyspark&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sql&lt;/SPAN&gt; &lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Initialize Spark session&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;spark&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;SparkSession&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;builder&lt;/SPAN&gt;&lt;SPAN&gt;.appName(&lt;/SPAN&gt;&lt;SPAN&gt;"MergeWithRowHash"&lt;/SPAN&gt;&lt;SPAN&gt;).getOrCreate()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;spark&lt;/SPAN&gt;&lt;SPAN&gt;.read.json(&lt;/SPAN&gt;&lt;SPAN&gt;'abfss://&amp;lt;adadasdd&amp;gt;@onelake.dfs.fabric.microsoft.com/adasdasdasdasdade-459b21ae93c2/Files/config.json'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;I am getting below error:&lt;BR /&gt;&lt;SPAN class=""&gt;File &lt;/SPAN&gt;&lt;SPAN class=""&gt;c:\Users\ryuser\AppData\Local\miniconda3\envs\fabric-synapse-runtime-1-2\lib\site-packages\py4j\protocol.py:326&lt;/SPAN&gt;&lt;SPAN class=""&gt;, in &lt;/SPAN&gt;&lt;SPAN class=""&gt;get_return_value&lt;/SPAN&gt;&lt;SPAN class=""&gt;(answer, gateway_client, target_id, name)&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;324&lt;/A&gt; value &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt; OUTPUT_CONVERTER[&lt;/SPAN&gt;&lt;SPAN class=""&gt;type&lt;/SPAN&gt;&lt;SPAN class=""&gt;](answer[&lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;SPAN class=""&gt;:], gateway_client) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;325&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt; answer[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;==&lt;/SPAN&gt;&lt;SPAN class=""&gt; REFERENCE_TYPE: &lt;/SPAN&gt;&lt;SPAN class=""&gt;--&amp;gt; &lt;A target="_blank" rel="noopener"&gt;326&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;raise&lt;/SPAN&gt;&lt;SPAN class=""&gt; Py4JJavaError( &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;327&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;328&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;(target_id, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, name), value) &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;329&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;330&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;raise&lt;/SPAN&gt;&lt;SPAN class=""&gt; Py4JError( &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;331&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;. Trace:&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;{3}&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A target="_blank" rel="noopener"&gt;332&lt;/A&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;(target_id, &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, name, value)) &lt;/SPAN&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: An error occurred while calling o36.json. :&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.fs.azurebfs.SecureAzureBlobFileSystem not found at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2688) at&lt;/STRONG&gt;&lt;/FONT&gt; org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3431) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3466) at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:174) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3574) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3521) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:540) at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365) at org.apache.spark.sql.execution.datasources.DataSource$.$anonfun$checkAndGlobPathIfNecessary$1(DataSource.scala:724) at scala.collection.immutable.List.map(List.scala:293) at org.apache.spark.sql.execution.datasources.DataSource$.checkAndGlobPathIfNecessary(DataSource.scala:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jul 2024 13:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4027129#M2863</guid>
      <dc:creator>riyajshaikh09</dc:creator>
      <dc:date>2024-07-05T13:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4028980#M2878</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/522040"&gt;@riyajshaikh09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure that the necessary packages are installed. Run the following command in the VSCode terminal.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install semantic-link
pip install azure-core
pip install azure-storage-blob&lt;/LI-CODE&gt;&lt;P&gt;Make sure your import statements are correct and the Python package is available:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from pyspark.sql import SparkSession
from pyspark.sql.types import StructType, StructField, IntegerType, BooleanType, StringType
from pyspark.sql.functions import col, max, current_date
import sempy.fabric as fabric
import json
from datetime import datetime

from azure.core.credentials import AccessToken
from azure.storage.blob import BlobServiceClient&lt;/LI-CODE&gt;&lt;P&gt;To resolve the missing Hadoop filesystem class for Py4JJavaError, make sure that the necessary Hadoop and Azure configurations are set up correctly.&lt;BR /&gt;Add the following to your Spark configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark = SparkSession.builder \
    .appName("MergeWithRowHash") \
    .config("fs.azure.account.auth.type.&amp;lt;your_storage_account&amp;gt;.dfs.core.windows.net", "OAuth") \
    .config("fs.azure.account.oauth.provider.type.&amp;lt;your_storage_account&amp;gt;.dfs.core.windows.net", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider") \
    .config("fs.azure.account.oauth2.client.id.&amp;lt;your_storage_account&amp;gt;.dfs.core.windows.net", "&amp;lt;your-client-id&amp;gt;") \
    .config("fs.azure.account.oauth2.client.secret.&amp;lt;your_storage_account&amp;gt;.dfs.core.windows.net", "&amp;lt;your-client-secret&amp;gt;") \
    .config("fs.azure.account.oauth2.client.endpoint.&amp;lt;your_storage_account&amp;gt;.dfs.core.windows.net", "https://login.microsoftonline.com/&amp;lt;your-tenant-id&amp;gt;/oauth2/token") \
    .getOrCreate()&lt;/LI-CODE&gt;&lt;P&gt;Ensure that the path to the Azure Data Lake file system is in the correct format:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;df = spark.read.json('abfss://&amp;lt;container-name&amp;gt;@&amp;lt;storage-account&amp;gt;.dfs.core.windows.net/&amp;lt;directory-path&amp;gt;/config.json')&lt;/LI-CODE&gt;&lt;P&gt;Ensure that hadoop-azure and azure-data-lake-storeJARs are available in the Spark class path. You may need to download the JAR files and place them in the Spark installation jars directory or add them to the Spark configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;spark = SparkSession.builder \
    .appName("YourAppName") \
    .config("spark.jars", "/path/to/hadoop-azure.jar,/path/to/azure-data-lake-store.jar") \
    .getOrCreate()&lt;/LI-CODE&gt;&lt;P&gt;In addition, you should check for any proxy settings or network issues that may be preventing access to Azure services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hackcrr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 00:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4028980#M2878</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-07-08T00:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4029136#M2879</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/522040"&gt;@riyajshaikh09&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;azureb&lt;/STRONG&gt;fs.Secure&lt;STRONG&gt;AzureBlob&lt;/STRONG&gt;FileSystem not found&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;According to the error message, it seems related to azure libraries. I suppose that you may lose some of libraries that in your environment so the code cannot be initialized/processed.&lt;BR /&gt;If that is the case, I'd like to suggest you check if these code processing required to attach 'Azure' and 'Azure Blob Storage' libraries. (when you run these codes on service side, it already includes and initialize some of required libraries)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:11:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4029136#M2879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T06:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4030779#M2890</link>
      <description>&lt;P&gt;But while we are running in Fabric workspace we dont need to do all these.&amp;nbsp;&lt;BR /&gt;we can directly call this&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4030779#M2890</guid>
      <dc:creator>riyajshaikh09</dc:creator>
      <dc:date>2024-07-08T16:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4030783#M2891</link>
      <description>&lt;P&gt;So how to fix this? which libraries I need to install?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4030783#M2891</guid>
      <dc:creator>riyajshaikh09</dc:creator>
      <dc:date>2024-07-08T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4031827#M2911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/522040"&gt;@riyajshaikh09&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you tried to import the azure libraries(e.g. azure core and azure blob storage) which appeared in the error messages before row '&lt;STRONG&gt;import sempy.fabric as fabric'?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4031827#M2911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T06:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4037344#M2970</link>
      <description>&lt;P&gt;can you give the commands?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 14:21:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4037344#M2970</guid>
      <dc:creator>riyajshaikh09</dc:creator>
      <dc:date>2024-07-11T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: issue while running Fabric notebook in VScode</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4047652#M3105</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/522040"&gt;@riyajshaikh09&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For the library and command which I mentions, they should similar as below code:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;pip install azure-core
pip install azure-storage-blob
pip install semantic-link&lt;/LI-CODE&gt;
&lt;P&gt;In addition, you can refer to the following links about install Azure libraries.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-install?tabs=pip" target="_blank"&gt;How to install Azure SDK library packages for Python - Python on Azure | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/developer/python/sdk/azure-sdk-library-package-index" target="_blank"&gt;Package index for Azure SDK libraries for Python - Python on Azure | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 06:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/issue-while-running-Fabric-notebook-in-VScode/m-p/4047652#M3105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-18T06:21:31Z</dc:date>
    </item>
  </channel>
</rss>

