Question

I have a counter column family in cassandra. When i try to view the data from CQL i get an error even though there is data in the column family.

SELECT * from userstats;

Generates the following error:

'int' object has no attribute 'replace'

I can confirm that the data is in the column family and is working properly since I can view the data with the Datastax Opscenter data explorer.

Was it helpful?

Solution

It sounds like you're using an older version of cqlsh. Upgrading it (just copying the bin/cqlsh file from the Cassandra 1.1 branch head, along with everything under the pylib directory, into place) ought to solve this.

If it doesn't, running cqlsh with --debug would help a lot in diagnosing the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top