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....@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-unsubscr...@spark.apache.org
> For additional commands, e-mail: user-h...@spark.apache.org
>
>

Reply via email to