You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sami Dalouche (Jira)" <ji...@apache.org> on 2020/10/06 19:05:00 UTC

[jira] [Updated] (SPARK-33077) Spark 3 / Cats 2.2.0 classpath issue

     [ https://issues.apache.org/jira/browse/SPARK-33077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sami Dalouche updated SPARK-33077:
----------------------------------
    Description: 
A small project with minimal dependencies as well as instructions on how to reproduce the issue is available at:

[https://github.com/samidalouche/spark3-cats220]

Executing this code works fine with cats 2.1.1 but fails with cats 2.2.0, which is quite surprising since the spark and cats dependencies are pretty much distinct from each other.

 
{code:java}
java.lang.NoSuchMethodError: 'void cats.kernel.CommutativeSemigroup.$init$(cats.kernel.CommutativeSemigroup)'
 at cats.UnorderedFoldable$$anon$1.<init>(UnorderedFoldable.scala:78)
 at cats.UnorderedFoldable$.<init>(UnorderedFoldable.scala:78)
 at cats.UnorderedFoldable$.<clinit>(UnorderedFoldable.scala)
 at cats.data.NonEmptyListInstances$$anon$2.<init>(NonEmptyList.scala:539)
 at cats.data.NonEmptyListInstances.<init>(NonEmptyList.scala:539)
 at cats.data.NonEmptyList$.<init>(NonEmptyList.scala:458)
 at cats.data.NonEmptyList$.<clinit>(NonEmptyList.scala)
 at catsspark.Boom$.assumeValid_$bang(boom.scala:19)
 at catsspark.Boom$.boom(boom.scala:14)
 ... 47 elided{code}
Thanks in advance for looking into this.


I submitted the same issue to cat's bug tracker: https://github.com/typelevel/cats/issues/3628

  was:
A small project with minimal dependencies as well as instructions on how to reproduce the issue is available at:

https://github.com/samidalouche/spark3-cats220

Executing this code works fine with cats 2.1.1 but fails with cats 2.2.0, which is quite surprising since the spark and cats dependencies are pretty much distinct from each other.

 
{code:java}
java.lang.NoSuchMethodError: 'void cats.kernel.CommutativeSemigroup.$init$(cats.kernel.CommutativeSemigroup)'
 at cats.UnorderedFoldable$$anon$1.<init>(UnorderedFoldable.scala:78)
 at cats.UnorderedFoldable$.<init>(UnorderedFoldable.scala:78)
 at cats.UnorderedFoldable$.<clinit>(UnorderedFoldable.scala)
 at cats.data.NonEmptyListInstances$$anon$2.<init>(NonEmptyList.scala:539)
 at cats.data.NonEmptyListInstances.<init>(NonEmptyList.scala:539)
 at cats.data.NonEmptyList$.<init>(NonEmptyList.scala:458)
 at cats.data.NonEmptyList$.<clinit>(NonEmptyList.scala)
 at catsspark.Boom$.assumeValid_$bang(boom.scala:19)
 at catsspark.Boom$.boom(boom.scala:14)
 ... 47 elided{code}
Thanks in advance for looking into this.


> Spark 3 / Cats 2.2.0 classpath issue
> ------------------------------------
>
>                 Key: SPARK-33077
>                 URL: https://issues.apache.org/jira/browse/SPARK-33077
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core, Spark Shell
>    Affects Versions: 3.0.1
>            Reporter: Sami Dalouche
>            Priority: Major
>
> A small project with minimal dependencies as well as instructions on how to reproduce the issue is available at:
> [https://github.com/samidalouche/spark3-cats220]
> Executing this code works fine with cats 2.1.1 but fails with cats 2.2.0, which is quite surprising since the spark and cats dependencies are pretty much distinct from each other.
>  
> {code:java}
> java.lang.NoSuchMethodError: 'void cats.kernel.CommutativeSemigroup.$init$(cats.kernel.CommutativeSemigroup)'
>  at cats.UnorderedFoldable$$anon$1.<init>(UnorderedFoldable.scala:78)
>  at cats.UnorderedFoldable$.<init>(UnorderedFoldable.scala:78)
>  at cats.UnorderedFoldable$.<clinit>(UnorderedFoldable.scala)
>  at cats.data.NonEmptyListInstances$$anon$2.<init>(NonEmptyList.scala:539)
>  at cats.data.NonEmptyListInstances.<init>(NonEmptyList.scala:539)
>  at cats.data.NonEmptyList$.<init>(NonEmptyList.scala:458)
>  at cats.data.NonEmptyList$.<clinit>(NonEmptyList.scala)
>  at catsspark.Boom$.assumeValid_$bang(boom.scala:19)
>  at catsspark.Boom$.boom(boom.scala:14)
>  ... 47 elided{code}
> Thanks in advance for looking into this.
> I submitted the same issue to cat's bug tracker: https://github.com/typelevel/cats/issues/3628



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org