spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Das <ak...@sigmoidanalytics.com>
Subject Re: NoSuchMethodError: cassandra.thrift.ITransportFactory.openTransport()
Date Mon, 27 Oct 2014 12:42:35 GMT
This can happen due to jar conflict, meaning one of the jar (possibly the
first one apache-cassandra-thrift*jar) is having a class named
*ITransportFactory *but it doesn't contain the method *openTransport()* in
it. You can make sure the jar is having *ITransportFactory *class in it and
it also has the method openTransport in it.


Thanks
Best Regards

On Mon, Oct 27, 2014 at 3:30 PM, Sasi <sasikumar.238@gmail.com> wrote:

> Apache Spark Team,
>
> We recently started experimenting with Apache Spark for high speed data
> retrieval. We downloaded Apache Spark Source Code; Installed Git; Packaged
> the assebly; Installed Scala and ran some examples mentioned in the
> documentation. We did all these steps on WindowsXP. Till this point, every
> thing seems to be fine.
>
> After that, we tried to connect Apache Spark with Cassandra. Downloaded
> Cassandra from DataStax and installed it. Developed small sample code for
> connecting to cassandra using
>
> https://github.com/datastax/spark-cassandra-connector/blob/b1.0/doc/0_quick_start.md
> link. During "spark-submit", we faced some JARs related issue and we
> resolved them using "--jars" option for spark-submit. However, we stuck
> with
> NoSuchMethodError: cassandra.thrift.ITransportFactory.openTransport()
>
> Find enclosed image for the complete error.
> <http://apache-spark-user-list.1001560.n3.nabble.com/file/n17338/Error.png
> >
>
> We included following JARS using "--jars" option for "spark-submit"
> a) apache-cassandra-thrift-1.1.10.jar
> b) libthrift-0.9.0.jar
> c) spark-cassandra-connector_2.10-1.1.0-alpha3.jar
> d) cassandra-all-2.1.0.jar
> e) cassandra-clientutil-2.1.0.jar
> f) cassandra-driver-core-2.1.0.jar
>
> Are we missed any JAR file? or Is it the right way to connect Spark with
> Cassandra? Any guidance would be appreciated.
>
> Sasi
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/NoSuchMethodError-cassandra-thrift-ITransportFactory-openTransport-tp17338.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message