Int object does not have replace attribute when trying to run CQL command in cassandra

I have a column-column in cassandra. When I try to view data from CQL, I get an error even if there is data in the column family.

SELECT * from userstats;

It raises the following error:

'int' object has no attribute 'replace'

I can confirm that the data is in the column family and is working fine, since I can view the data using the Datastax Opscenter data explorer.

+3
source share
1 answer

It looks like you are using an older version of cqlsh. Updating (just copying the file bin/cqlshfrom the head of the Cassandra 1.1 branch along with everything in the directory pylibto the place) should solve this.

, cqlsh --debug .

+3

All Articles