Cassandra: Cannot truncate table

Vinod Patel picture Vinod Patel · Jul 29, 2015 · Viewed 7.1k times · Source

I have a table named buddyme.chatarch.

When trying to truncate the table.

cqlsh:buddyme> TRUNCATE chatarch;

I am getting this error.

TruncateError: <ErrorMessage code=1003 [Error during truncate] message="Error during truncate: Cannot achieve consistency level ALL">

What can be the possible reason? I am new to Cassandra.

Thanks

Answer

user5122182 picture user5122182 · Jul 30, 2015

Even I was facing the same issue. One of the nodes in my cluster was down. Fixed the issue by starting all nodes.