incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Ellis <jbel...@gmail.com>
Subject Re: Removing a node ...
Date Wed, 09 Mar 2011 19:43:57 GMT
Did you check log for errors?

(ASF mailing lists prefer plain text; html has a higher spam score.)

On Wed, Mar 9, 2011 at 11:59 AM, Sasha Dolgy <sdolgy@gmail.com> wrote:
> mail servers keep catching up in spam filters.  Something about being a
> loyal gmail user ...!
> Let's try this again:
>
> further to this ...using cassandra 0.7.0
>
> nodetool -h 10.0.0.1 -p 8080 decommission
>  INFO [RMI TCP Connection(2)-10.0.0.1] 2011-03-09 16:52:22,226
> StorageService.java (line 399) Leaving: sleeping 30000 ms for pending range
> setup
>  INFO [RMI TCP Connection(2)-10.0.0.1] 2011-03-09 16:52:52,233
> StorageService.java (line 399) Leaving: streaming data to other nodes
>  INFO [StreamStage:1] 2011-03-09 16:52:52,237 StreamOut.java (line 77)
> Beginning transfer to /10.0.0.2
>  INFO [StreamStage:1] 2011-03-09 16:52:52,238 StreamOut.java (line 100)
> Flushing memtables for sdo...
>  INFO [StreamStage:1] 2011-03-09 16:52:52,239 StreamOut.java (line 173)
> Stream context metadata [/mnt/cassandra/data/sdo/user-e-1-Data.db/(0,675)
>          progress=0/675 - 0%,
> /mnt/cassandra/data/sdo/app-e-1-Data.db/(0,502)
>          progress=0/502 - 0%,
> /mnt/cassandra/data/sdo/aut-e-1-Data.db/(0,1493)
>          progress=0/1493 - 0%], 3 sstables.
>  INFO [StreamStage:1] 2011-03-09 16:52:52,240 StreamOutSession.java (line
> 174) Streaming to /10.0.0.2
>
> It's been about 40 minutes now, and when I go to another node and run
> nodetool -h 10.0.0.2 -p 8080 ring I get the following:
>
> Address         Status State   Load            Owns    Token
>
> 116084175244813755374456454604099553584
> 10.0.0.3  Up     Normal  206.17 KB       45.91%
>  24053088190195663439419935163232881936
> 10.0.0.1    Up     Leaving 218.71 KB       21.76%
>  61078635599166706937511052402724559481
> 10.0.0.2    Up     Normal  224.8 KB        32.33%
>  116084175244813755374456454604099553584
>
> Leaving is taking a very long time for such a very very small amount of
> data.  How long does it take to "decommission" ?
>
> -sd
>
>
> On Wed, Mar 9, 2011 at 6:01 PM, Sasha Dolgy <sdolgy@gmail.com> wrote:
>
>>
>> Hi there,
>>
>> Wanted to clarify with anyone ... re:
>> http://wiki.apache.org/cassandra/Operations#Removing_nodes_entirely
>>
>> You can take a node out of the cluster with nodetool decommission to a
>> live node, or nodetool removetoken (to any other machine) to remove a dead
>> one. This will assign the ranges the old node was responsible for to other
>> nodes, and replicate the appropriate data there. If decommission is used,
>> the data will stream from the decommissioned node. If removetoken is used,
>> the data will stream from the remaining replicas.
>>
>>
>>    - If the node is alive and functional, the command to be run from that
>>    node is:  nodetool decommission
>>    - If the node is dead, the command to be run from another node (or all
>>    other nodes) is:  nodetool removetoken <token>
>>
>>
>> -sd
>>
>> --
>> Sasha Dolgy
>> sasha.dolgy@gmail.com



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com

Mime
View raw message