You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by edi mari <ed...@gmail.com> on 2024/11/19 09:52:00 UTC
Cassandra snapshot with TTL
Hi,
I'm attempting to use the `snapshot` command with the `--tt` option, but I
keep encountering an error.
Can you help me figure out what I might be doing wrong?
I'm using Cassandra v4.1.5.
*nodetool snapshot --ttl 1HOURS -t my_snapshot my_keyspace*
nodetool: Invalid duration: 1[HOURS] Accepted units:[NANOSECONDS,
MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS] where case
matters and only non-negative values.
See 'nodetool help' or 'nodetool help <command>'.
Thanks
Edi
Re: Cassandra snapshot with TTL
Posted by edi mari <ed...@gmail.com>.
Working, Thanks
On Tue, Nov 19, 2024 at 12:01 PM guo Maxwell <cc...@gmail.com> wrote:
> try to replace 1HOURS with 1h ?
>
> edi mari <ed...@gmail.com> 于2024年11月19日周二 17:52写道:
>
>> Hi,
>> I'm attempting to use the `snapshot` command with the `--tt` option, but
>> I keep encountering an error.
>> Can you help me figure out what I might be doing wrong?
>>
>> I'm using Cassandra v4.1.5.
>>
>> *nodetool snapshot --ttl 1HOURS -t my_snapshot my_keyspace*
>>
>> nodetool: Invalid duration: 1[HOURS] Accepted units:[NANOSECONDS,
>> MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS] where case
>> matters and only non-negative values.
>> See 'nodetool help' or 'nodetool help <command>'.
>>
>> Thanks
>> Edi
>>
>
Re: Cassandra snapshot with TTL
Posted by guo Maxwell <cc...@gmail.com>.
try to replace 1HOURS with 1h ?
edi mari <ed...@gmail.com> 于2024年11月19日周二 17:52写道:
> Hi,
> I'm attempting to use the `snapshot` command with the `--tt` option, but I
> keep encountering an error.
> Can you help me figure out what I might be doing wrong?
>
> I'm using Cassandra v4.1.5.
>
> *nodetool snapshot --ttl 1HOURS -t my_snapshot my_keyspace*
>
> nodetool: Invalid duration: 1[HOURS] Accepted units:[NANOSECONDS,
> MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS] where case
> matters and only non-negative values.
> See 'nodetool help' or 'nodetool help <command>'.
>
> Thanks
> Edi
>