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

pyspark with scala 2.13 jar doesn't work #61

Open
samos123 opened this issue Feb 5, 2023 · 1 comment
Open

pyspark with scala 2.13 jar doesn't work #61

samos123 opened this issue Feb 5, 2023 · 1 comment

Comments

@samos123
Copy link
Collaborator

samos123 commented Feb 5, 2023

This error will be thrown if you use the 2.13 fat jar with pyspark:

E                   py4j.protocol.Py4JJavaError: An error occurred while calling o50.save.
E                   : java.lang.NoSuchMethodError: 'scala.collection.convert.AsScalaExtensions$ListHasAsScala scala.jdk.CollectionConverters$.ListHasAsScala(java.util.List)'
E                       at io.weaviate.spark.Weaviate.inferSchema(Weaviate.scala:23)
E                       at org.apache.spark.sql.execution.datasources.v2.DataSourceV2Utils$.getTableFromProvider(DataSourceV2Utils.scala:90)
E                       at org.apache.spark.sql.DataFrameWriter.getTable$1(DataFrameWriter.scala:280)
E                       at org.apache.spark.sql.DataFrameWriter.saveInternal(DataFrameWriter.scala:296)
E                       at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:247)
@Kamalabot
Copy link

Facing the same error, and then did some looking around. Found this write up that is using weaviate-spark-connector-assembly-v0.1.2.jar.
https://weaviate.io/blog/details-behind-the-sphere-dataset-in-weaviate
I am unable to locate the above jar in maven... so not able to test it out.

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