rovin-ms opened a new issue, #1198:
URL: https://github.com/apache/sedona/issues/1198
## Expected behavior
I'm attempting to setup Sedona in Microsoft Fabric. I've loaded the Python
packages and the Jar files.
## Actual behavior
When I run this code:
import geopandas as gpd
from sedona.spark import *
SedonaContext.builder().config("spark.sql.autoBroadcastJoinThreshold",
"10485760")
config = SedonaContext.builder() .\
config('spark.jars.packages',
'org.apache.sedona:sedona-spark-shaded-3.0_2.12:1.5.0,'
'org.datasyslab:geotools-wrapper:1.5.0-28.2'). \
getOrCreate()
sedona = SedonaContext.create(config)
I receive this error:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[19], line 13
5
SedonaContext.builder().config("spark.sql.autoBroadcastJoinThreshold",
"10485760")
7 config = SedonaContext.builder() .\
8 config('spark.jars.packages',
9 'org.apache.sedona:sedona-spark-shaded-3.0_2.12:1.5.0,'
10 'org.datasyslab:geotools-wrapper:1.5.0-28.2'). \
11 getOrCreate()
---> 13 sedona = SedonaContext.create(config)
File
~/cluster-env/trident_env/lib/python3.10/site-packages/sedona/spark/SedonaContext.py:38,
in SedonaContext.create(cls, spark)
36 spark.sql("SELECT 1 as geom").count()
37 PackageImporter.import_jvm_lib(spark._jvm)
---> 38 spark._jvm.SedonaContext.create(spark._jsparkSession)
39 return spark
TypeError: 'JavaPackage' object is not callable
## Steps to reproduce the problem
Load all the Python packages in the Public Libraries of Fabric:
shapely="<=1.8.5"
pandas="<=1.3.5"
geopandas="<=0.10.2"
pyspark=">=2.3.0"
attrs="*"
pyarrow="*"
keplergl = "==0.3.2"
pydeck = "===0.8.0"
## Settings
Sedona version = 1.5
Apache Spark version = 3.3.1.5.2-108696741
Apache Flink version = N/A
API type = Scala, Java, Python? Python
Scala version = 2.11, 2.12, 2.13?
JRE version = 1.8, 1.11?
Python version = ?
Environment = Standalone, AWS EC2, EMR, Azure, Databricks? Microsoft Fabric
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]