You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Jan Algermissen <al...@icloud.com> on 2016/02/22 12:13:39 UTC

[Cassandra-Connector] No Such Method Error despite correct versions

Hi,

I am using

Cassandra 2.1.5
Spark 1.5.2
Cassandra java-drive 3.0.0
Cassandra-Connector 1.5.0-RC1

All with scala 2.11.7

Nevertheless, I get the following error from my Spark job:

java.lang.NoSuchMethodError: com.datastax.driver.core.TableMetadata.getIndexes()Ljava/util/List;
at com.datastax.spark.connector.cql.Schema$.getIndexMap(Schema.scala:198)
at com.datastax.spark.connector.cql.Schema$.com$datastax$spark$connector$cql$Schema$$fetchPartitionKey(Schema.scala:202)

I checked that getIndexMap() is present in the version used - it is.

I also decompiled the class TableMetadata directly from the fat jar I am deploying. The method is present. The only thing I noticed is that the signature the decompiler shows is

public Collection<IndexMetadata> getIndexes() {
    
and not List<IndexMetadata> - but I guess that is just the recompilation.

I am pretty lost regarding what steps to take to get rid of this error.

Can anyone provide a clue?

Jan




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


Re: [Cassandra-Connector] No Such Method Error despite correct versions

Posted by Jan Algermissen <al...@icloud.com>.
Doh - minutes after my question I saw the same from a couple of days ago

Indeed, using C* driver 3.0.0-rc1 seems to solve the issue

Jan

> On 22 Feb 2016, at 12:13, Jan Algermissen <al...@icloud.com> wrote:
> 
> Hi,
> 
> I am using
> 
> Cassandra 2.1.5
> Spark 1.5.2
> Cassandra java-drive 3.0.0
> Cassandra-Connector 1.5.0-RC1
> 
> All with scala 2.11.7
> 
> Nevertheless, I get the following error from my Spark job:
> 
> java.lang.NoSuchMethodError: com.datastax.driver.core.TableMetadata.getIndexes()Ljava/util/List;
> at com.datastax.spark.connector.cql.Schema$.getIndexMap(Schema.scala:198)
> at com.datastax.spark.connector.cql.Schema$.com$datastax$spark$connector$cql$Schema$$fetchPartitionKey(Schema.scala:202)
> 
> I checked that getIndexMap() is present in the version used - it is.
> 
> I also decompiled the class TableMetadata directly from the fat jar I am deploying. The method is present. The only thing I noticed is that the signature the decompiler shows is
> 
> public Collection<IndexMetadata> getIndexes() {
> 
> and not List<IndexMetadata> - but I guess that is just the recompilation.
> 
> I am pretty lost regarding what steps to take to get rid of this error.
> 
> Can anyone provide a clue?
> 
> Jan
> 
> 
> 


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