cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@riptano.com>
Subject Re: API mismatch Cassandra and Pycassa versions
Date Wed, 06 Oct 2010 17:20:59 GMT
Hmm, I thought the Thrift API was moved to 18 before beta2 was released.

I'll make a matching release for pycassa in just a moment.  Thanks for the
notice.

By the way, there is a pycassa specific mailing list,
pycassa-discuss@googlegroups.com

- Tyler

On Wed, Oct 6, 2010 at 12:13 PM, Dipti Mathur <diptidmathur@gmail.com>wrote:

> Hi All,
>
> I was trying to connect to cassandra using the pycassa module. Looks like
> there is a API cersion mismatch. Any ideas where I can get the right version
> of the APIs?
>
> I am using:
> INFO 22:11:50,860 Cassandra version: 0.7.0-beta2
> INFO 22:11:50,861 Thrift API version: 17.1.0
>
> Error message on python prompt:
>
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pycassa
> >>> client=pycassa.connect('keyspace1',timeout=3.5)
> >>> cf=pycassa.ColumnFamily(client,'Standard1')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/dipti/src/pycassa/pycassa/columnfamily.py", line 125, in
> __init__
>     col_fam = client.get_keyspace_description()[self.column_family]
>   File "/home/dipti/src/pycassa/pycassa/connection.py", line 273, in
> get_keyspace_description
>     ks_def = self.describe_keyspace(keyspace)
>   File "/home/dipti/src/pycassa/pycassa/connection.py", line 227, in
> _client_call
>     conn = self._ensure_connection()
>   File "/home/dipti/src/pycassa/pycassa/connection.py", line 238, in
> _ensure_connection
>     conn = self.connect()
>   File "/home/dipti/src/pycassa/pycassa/connection.py", line 198, in
> connect
>     self._recycle)
>   File "/home/dipti/src/pycassa/pycassa/connection.py", line 64, in
> __init__
>     "(Client: %s, Server: %s)" % (API_VERSION[0], server_api_version[0])
> AssertionError: Thrift API version mismatch. (Client: 18, Server: 17)
> >>>
>
>
>

Mime
View raw message