i want to use the following code for updating a field...
@@db.execute(\"UPDATE user_count SET counters = counters + #{val} WHERE cid = 1 \")
You need to set default_validation=CounterColumnType instead of comparator.
@@db.execute("CREATE COLUMNFAMILY user_count(cid varchar PRIMARY KEY, counters counter) with default_validation=CounterColumnType")
@@db.execute("update user_count set counters = counters + 1 where cid = 1")
You must use 'update' to change the counter value, there is no insert syntax for counters (in CQL update and insert do the same thing so you can create new rows using update).
Currently you cannot have counters and non-counters in the same column family (from the wiki: "A column family either contains only counters, or no counters at all.")