Azure-Samples / Synapse

Samples for Azure Synapse Analytics
MIT License
378 stars 350 forks source link

ModuleNotFoundError: No module named 'org.apache.spark.sql.SqlAnalyticsConnector' #148

Closed ismaan1998 closed 2 years ago

ismaan1998 commented 2 years ago

Hi There, I was following the Notebook Code


%%pyspark 

import org.apache.spark.sql.SqlAnalyticsConnector._
import com.microsoft.spark.sqlanalytics.utils.Constants
spark_read = spark.read.sqlanalytics("Built-in.dbo.LogisticsPostalAddress")
spark_read.show(5, truncate = false)

Output - image

Note - I am using Azure Synapse Notebooks. Isn't this module should be already installed in the notebook or if not then how i can install it?

ismaan1998 commented 2 years ago

Seems like i forgot to use SCALA as runtime