How do you update gc_grace_seconds with cassandra-cli?

What is a command to update a column family and change the value of gc_grace_seconds using cassandra-cli ?

+7
source share
3 answers

On cassandra-cli no seconds

 UPDATE COLUMN FAMILY cf with GC_GRACE = 86400; //one day 
+9
source

For CQLSH

 alter table <table_name> with GC_GRACE_SECONDS = <timeout>; 

eg:

 alter table yawn with GC_GRACE_SECONDS = 3600; 

where yawn is our table name and 3600 is an hour;

+20
source
 use ks; update column family cf with gc_grace_seconds = 864000; 
+1
source

All Articles