You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Hubert Plociniczak (JIRA)" <ji...@apache.org> on 2017/09/13 13:48:00 UTC

[jira] [Created] (IGNITE-6369) 2.11 Spark integration has a dependency on Spark's 2.10 library

Hubert Plociniczak created IGNITE-6369:
------------------------------------------

             Summary: 2.11 Spark integration has a dependency on Spark's 2.10 library
                 Key: IGNITE-6369
                 URL: https://issues.apache.org/jira/browse/IGNITE-6369
             Project: Ignite
          Issue Type: Bug
          Components: spark
            Reporter: Hubert Plociniczak


A simple Spark application that uses both Spark and Ignite fails to compile in sbt under 2.11 due to conflicting dependencies. For a simple sbt definition with:

{code}
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.1.0" 
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.1.0" 
libraryDependencies += "org.apache.ignite" % "ignite-spark" % "2.1.0"
{code}

it will fail to compile with: 
{code}
[error] Modules were resolved with conflicting cross-version suffixes in: 
[error]    org.scalatest:scalatest _2.11, _2.10 
[error]    com.twitter:chill _2.11, _2.10 
[error]    org.apache.spark:spark-unsafe _2.11, _2.10 
[error]    org.apache.spark:spark-tags _2.11, _2.10 
[trace] Stack trace suppressed: run 'last *:update' for the full output. 
{code}
It looks like a single culprit is the entry in ignite-spark's pom.xml for
{{spark-unsafe_2.10}}.
When removed, compiled and published, everything works great.
I don't see why such an entry exists in {{spark}} module when there is a separate {{spark-2.10}} module as well.

Happy to submit a PR if anyone is willing to give a thumbs up.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)