You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project configured with sbt, Scala 2.12, and Spark 3.3 (marked as Provided, to run on AWS Glue). I need this connector to write into a AOS cluster. However, when configuring it as a dependency, I get a conflict with the Spark lib.
Hi @borgoat, I'm new to Hadoop & Spark space so forgive me if I'm misunderstanding, but I believe you want the specific "org.opensearch.client" % "opensearch-spark-30_2.12" % "1.0.1", dependency rather than the general -hadoop one for your use case
What is the bug?
I have a project configured with sbt, Scala 2.12, and Spark 3.3 (marked as Provided, to run on AWS Glue). I need this connector to write into a AOS cluster. However, when configuring it as a dependency, I get a conflict with the Spark lib.
This is my
build.sbt
:And I'm getting the following error:
I changed the import for the connector as follows to avoid bringing in the conflicting transitive dependency:
How can one reproduce the bug?
org.apache.spark
dependencyWhat is the expected behavior?
I believe I should be able to import the library in a Scala 2.12 project, it is marked as compatible in the docs1.
What is your host/environment?
macOS 14.0, Amazon Corretto 17.0.7, sbt 1.9.0, Scala 2.12.18
Do you have any additional context?
Maybe I'm doing something completely wrong... not sure.
Footnotes
https://github.com/opensearch-project/opensearch-hadoop/blob/main/COMPATIBILITY.md ↩
The text was updated successfully, but these errors were encountered: