You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/09/01 20:02:47 UTC

[jira] [Resolved] (SPARK-10377) Cassandra connector affected by backport change

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

Yin Huai resolved SPARK-10377.
------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.2

Issue resolved by pull request 8545
[https://github.com/apache/spark/pull/8545]

> Cassandra connector affected by backport change
> -----------------------------------------------
>
>                 Key: SPARK-10377
>                 URL: https://issues.apache.org/jira/browse/SPARK-10377
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.2
>            Reporter: Frode Sormo
>            Assignee: Yin Huai
>             Fix For: 1.4.2
>
>
> The backport in SPARK-7289 and SPARK-9949 includes the refactor of TakeOrdered to TakeOrderedAndProject, which breaks code that refers to TakeOrdered. In a minor version update that is perhaps not expected - specifically, the Cassandra connector refers to this by name and no longer works.
> Example use case it to use the Cassandra connector in Scala and creating a CassandraSQLContext:
> import com.datastax.spark.connector._
> import sqlContext.implicits._
> import org.apache.spark.sql.cassandra.CassandraSQLContext
> val cassandraSQLContext = new CassandraSQLContext(sc);
> java.lang.NoSuchMethodError: org.apache.spark.sql.cassandra.CassandraSQLContext$$anon$1.TakeOrdered()Lorg/apache/spark/sql/execution/SparkStrategies$TakeOrdered$;
> 	at org.apache.spark.sql.cassandra.CassandraSQLContext$$anon$1.<init>(CassandraSQLContext.scala:90)
> 	at org.apache.spark.sql.cassandra.CassandraSQLContext.<init>(CassandraSQLContext.scala:85)
> (Source code link: https://github.com/datastax/spark-cassandra-connector/blob/v1.4.0-M3/spark-cassandra-connector/src/main/scala/org/apache/spark/sql/cassandra/CassandraSQLContext.scala) 
> This is with version 1.4.0M3 of the Datastax Cassandra connector, but affects other 1.4 versions as well.
> Issue has also been reported to Datastax, here: 
> https://datastax-oss.atlassian.net/browse/SPARKC-238



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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