You can script the actions you need and pipe the file into Cassandra-CLI.
Works for me.
On 1/20/2011 10:18 PM, Roshan Dawrani wrote:
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton <aa...@thelastpickle.com
<mailto:aa...@thelastpickle.com>> wrote:
There is a truncate() function that will clear a CF. It may leave
a snapshot around, cannot remember exactly.
Not sure if Hector (0.7.0-22) has added truncate() to its API yet. I
can't find it.
In Hector, I see a _dropColumnFamily()_ that goes to Cassandra's
_system_drop_column_family()_ call.
I am not sure how this system_drop_column_family() fares in
comparision to truncate() in terms of time the clean-up would take.
I am new to Hector/Cass and all my exposure to Cass API has been
through Hector. So a basic question.
If Hector has not provided truncate() to its API, can I bypass it and
make the call to Cassandra API directly? Does Hector leave any opening
for such bypassed calls?
Thanks.