Re: Replacing a dead node in Cassandra 2.0.8

2014-08-25 Thread tsi
I read some additional threads concerning outdated snapshots and deleted data
so if the VM snapshot is older than  gc_grace_seconds I suppose that data
deleted meanwhile for which the tombstones have been removed would come back
to life again if I just restore the VM from a snapshot being older than
gc_grace_seconds.
So after restoring the VM snapshot I should make sure Cassandra doesn’t
start up automatically with the outdated snapshot data.
Then I could 

1)either startup the node with the replace_address option (do I still need
to clear data directories first to avoid that deleted data comes back to
life again?)

2) restore a Cassandra snapshot being not older than gc_grace_seconds by
physically replacing SSTables in the data directory (did I get it right that
the node must be up for running StorageService or sstableloader?)  and run
nodetool repair afterwards.

Is this correct? 


tsi wrote
 OK, now supposing Cassandra is run in a VM that crashes and I restore it
 from a snapshot done some time ago. Data is stored redundantly
 (replication factor 3) and I'm using consistency level QUORUM for reads
 and writes. That means no data should be lost as the latest data will at
 least be stored on another node. Now what do I have to do to sync the
 dead node again after restoring the VM from the snapshot? Will a
 nodetool repair command be sufficient?





--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Replacing-a-dead-node-in-Cassandra-2-0-8-tp7596245p7596454.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.


[RELEASE] Apache Cassandra 2.0.10 released

2014-08-25 Thread Sylvain Lebresne
The Cassandra team is pleased to announce the release of Apache Cassandra
version 2.0.10.

Apache Cassandra is a fully distributed database. It is the right choice
when you need scalability and high availability without compromising
performance.

 http://cassandra.apache.org/

Downloads of source and binary distributions are listed in our download
section:

 http://cassandra.apache.org/download/

This version is a bug fix release[1] on the 2.0 series. As always, please
pay
attention to the release notes[2] and Let us know[3] if you were to
encounter
any problem.

Enjoy!

[1]: http://goo.gl/FNcwyk (CHANGES.txt)
[2]: http://goo.gl/NLVXwb (NEWS.txt)
[3]: https://issues.apache.org/jira/browse/CASSANDRA


Re: How to free disk space after decreasing replication factor?

2014-08-25 Thread Robert Coli
On Sat, Aug 23, 2014 at 8:20 PM, Yatong Zhang bluefl...@gmail.com wrote:

  I am using leveled compaction and I changed the replication factor from 3
 to 2, but after a few days the disk space weren't freed. I tried to trigger
 the compaction or clean up, but looks like it didn't take any effect.


nodetool cleanup

Is for the case where your nodes are no longer responsible for ranges they
used to be responsible for, as in reducing replication factor.

=Rob


[no subject]

2014-08-25 Thread Sávio S . Teles de Oliveira
We're using cassandra 2.0.9 with datastax java cassandra driver 2.0.0 in a
cluster of eight nodes.

We're doing an insert and after a delete like:

delete from *column_family_name* where *id* = value

Immediatly select to check whether the DELETE was successful. Sometimes the
value still there!!


Any suggestions?

-- 
Atenciosamente,
Sávio S. Teles de Oliveira
voice: +55 62 9136 6996
http://br.linkedin.com/in/savioteles
Mestrando em Ciências da Computação - UFG
Arquiteto de Software
CUIA Internet Brasil


Re:

2014-08-25 Thread Robert Coli
On Mon, Aug 25, 2014 at 1:25 PM, Sávio S. Teles de Oliveira 
savio.te...@cuia.com.br wrote:

 We're using cassandra 2.0.9 with datastax java cassandra driver 2.0.0 in a
 cluster of eight nodes.

 We're doing an insert and after a delete like:

 delete from *column_family_name* where *id* = value

 Immediatly select to check whether the DELETE was successful. Sometimes
 the value still there!!

What are Replication Factor (RF) and Consistency Level (CL)?

=Rob


Re:

2014-08-25 Thread Jonathan Haddad
It sounds like your clocks are out of sync.  Run ntpdate to fix your
clock  then make sure you're running ntpd on every machine.

On Mon, Aug 25, 2014 at 1:25 PM, Sávio S. Teles de Oliveira
savio.te...@cuia.com.br wrote:
 We're using cassandra 2.0.9 with datastax java cassandra driver 2.0.0 in a
 cluster of eight nodes.

 We're doing an insert and after a delete like:

 delete from column_family_name where id = value

 Immediatly select to check whether the DELETE was successful. Sometimes the
 value still there!!


 Any suggestions?

 --

 Atenciosamente,
 Sávio S. Teles de Oliveira
 voice: +55 62 9136 6996
 http://br.linkedin.com/in/savioteles
 Mestrando em Ciências da Computação - UFG
 Arquiteto de Software
 CUIA Internet Brasil



-- 
Jon Haddad
http://www.rustyrazorblade.com
twitter: rustyrazorblade


Re:

2014-08-25 Thread Jonathan Haddad
This is actually a more correct response than mine, I made a few
assumptions that may or may not be true.

On Mon, Aug 25, 2014 at 1:31 PM, Robert Coli rc...@eventbrite.com wrote:
 On Mon, Aug 25, 2014 at 1:25 PM, Sávio S. Teles de Oliveira
 savio.te...@cuia.com.br wrote:

 We're using cassandra 2.0.9 with datastax java cassandra driver 2.0.0 in a
 cluster of eight nodes.

 We're doing an insert and after a delete like:

 delete from column_family_name where id = value

 Immediatly select to check whether the DELETE was successful. Sometimes
 the value still there!!

 What are Replication Factor (RF) and Consistency Level (CL)?

 =Rob




-- 
Jon Haddad
http://www.rustyrazorblade.com
twitter: rustyrazorblade


OpsCenter_rollups*

2014-08-25 Thread Ruchir Jha
Hi,

I see a lot of activity around the OpsCenter_rollups CFs in the logs. Why
is there so much OpsCenter work happening? Is there a way to disable it,
and whats the impact?

Ruchir.


Re:

2014-08-25 Thread Sávio S . Teles de Oliveira
RF=1 and CF=ONE.

The clocks were sync. It was my first assumption.


2014-08-25 17:36 GMT-03:00 Jonathan Haddad j...@jonhaddad.com:

 This is actually a more correct response than mine, I made a few
 assumptions that may or may not be true.

 On Mon, Aug 25, 2014 at 1:31 PM, Robert Coli rc...@eventbrite.com wrote:
  On Mon, Aug 25, 2014 at 1:25 PM, Sávio S. Teles de Oliveira
  savio.te...@cuia.com.br wrote:
 
  We're using cassandra 2.0.9 with datastax java cassandra driver 2.0.0
 in a
  cluster of eight nodes.
 
  We're doing an insert and after a delete like:
 
  delete from column_family_name where id = value
 
  Immediatly select to check whether the DELETE was successful. Sometimes
  the value still there!!
 
  What are Replication Factor (RF) and Consistency Level (CL)?
 
  =Rob
 



 --
 Jon Haddad
 http://www.rustyrazorblade.com
 twitter: rustyrazorblade




-- 
Atenciosamente,
Sávio S. Teles de Oliveira
voice: +55 62 9136 6996
http://br.linkedin.com/in/savioteles
Mestrando em Ciências da Computação - UFG
Arquiteto de Software
CUIA Internet Brasil


Re:

2014-08-25 Thread Robert Coli
On Mon, Aug 25, 2014 at 2:16 PM, Sávio S. Teles de Oliveira 
savio.te...@cuia.com.br wrote:

 RF=1 and CF=ONE.


With RF=1 and CL=ONE, I do not personally understand a scenario in which a
read at T2 reads an item which was deleted at T1.

If you have a trivial repro case, I suggest filing a JIRA ticket and
letting the list know its URL.

=Rob


Re: OpsCenter_rollups*

2014-08-25 Thread Robert Coli
On Mon, Aug 25, 2014 at 1:42 PM, Ruchir Jha ruchir@gmail.com wrote:

 I see a lot of activity around the OpsCenter_rollups CFs in the logs. Why
 is there so much OpsCenter work happening? Is there a way to disable it,
 and whats the impact?


Opscenter is tracking the metrics for your cluster and storing the tracking
data... in your cluster. This would generally seem to not make a whole lot
of sense, but there you have it.

There is probably a way to disable the stats collection part of OpsCenter,
but that's presumably part of the value add of OpsCenter.

=Rob