Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nessie + Pyspark - Error "'JavaPackage' object is not callable" on instanciation of the NessieCatalog object #9443

Open
Charles-PORROT opened this issue Aug 29, 2024 · 1 comment

Comments

@Charles-PORROT
Copy link

What happened

When testing the Pyspark demo script (https://projectnessie.org/iceberg/spark/#configuration), the following error occurs on the call to the Catalog() method:

Traceback (most recent call last):
  File "/home/ac75097972/spark_nessie_exemple/main.py", line 51, in <module>
    catalog = jvm.NessieCatalog()
TypeError: 'JavaPackage' object is not callable*

How to reproduce it

  1. Collect the attached file and change it into a .py file main.txt
  2. Install the python file in your testing environment, as well as the required jars
  3. Use the command spark-submit --jars [jars_path]/iceberg-spark-runtime-3.5_2.13-1.5.2.jar,[jars_path]/nessie-spark-extensions-3.5_2.13-0.95.0.jar main.py

main.txt

Nessie server type (docker/uber-jar/built from source) and version

Nessie Spark extensions for Spark 3.5, v1.5.2

Client type (Ex: UI/Spark/pynessie ...) and version

Spark 3.5 - Python 3.9 - JDK 17

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Charles-PORROT and others