Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread jasonmpell
I checked and /etc/security/limits.conf on redhat supports zero (0) to mean unlimited. Here is the sample from the man page. Notice the soft core entry. EXAMPLES These are some example lines which might be specified in /etc/security/limits.conf. * softcore

Re: Taking down a node in a 3-node cluster, RF=2

2010-11-29 Thread David Boxenhorn
For that matter, RF=1 and QUORUM are incompatible (if you want to be able to take a node down). In other words, if you use QUORUM, you need RF>=3. On Sun, Nov 28, 2010 at 8:04 PM, Jake Luciani wrote: > Right. > > > On Sun, Nov 28, 2010 at 1:03 PM, David Boxenhorn wrote: > >> OK. To sum up: RF=2

Booting Cassandra v0.7.0 on Windows: rename failed

2010-11-29 Thread Ramon Rockx
Hi, Recently I downloaded Cassandra v0.7.0 rc1. When I try to run cassandra it ends with the following logging: INFO 09:17:30,044 Enqueuing flush of memtable-locationi...@839514767(643 bytes, 12 operations) INFO 09:17:30,045 Writing memtable-locationi...@839514767(643 bytes, 12 operations) ER

word_count example fails in multi-node configuration

2010-11-29 Thread RS
Hi guys, I am trying to run word_count example from contrib directory (0.7 beta 3 and 0.7.0 rc 1). It works fine in a single-node configuration, but fails with 2+ nodes. It fails in the assert statement, which caused problems before (https://issues.apache.org/jira/browse/CASSANDRA-1700). Here's

Cassandra 0.7 beta 3 outOfMemory (OOM)

2010-11-29 Thread cassandra
Hi community, during my tests i had several OOM crashes. Getting some hints to find the problem would be nice. First cassandra crashes after about 45 min insert test script. During the following tests time to OOM was shorter until it started to crash even in "idle" mode. Here the facts: - cassa

The key list of multiget_slice's parameter has been changed unexpectedly.

2010-11-29 Thread eggli
Hi everyone, we are working on a Java product based on Cassandra since 0.5, and Cassandra made a very huge change in 0.7 beta 2, which changes all byte array into ByteBuffers, and we found this problem which confuses us a lot, here's the detail about what happened: The multiget_slice method in

Re: The key list of multiget_slice's parameter has been changed unexpectedly.

2010-11-29 Thread Sylvain Lebresne
You should start by trying 0.7 RC1. Some bugs with the use of ByteBuffers have been corrected since beta2. If you still have problem, then it's likely a bug, the byteBuffer should not be changed from under you. If it still doesn't work with RC1, it would be very helpful if you can provide a simple

Re: Booting Cassandra v0.7.0 on Windows: rename failed

2010-11-29 Thread Gary Dusbabek
Windows is notoriously bad about hanging on to file handles. Make sure there are no explorer windows or command line windows open to d:\cassandra\data\system\, and then hope for the best. Gary. On Mon, Nov 29, 2010 at 02:49, Ramon Rockx wrote: > Hi, > > Recently I downloaded Cassandra v0.7.0 rc

Re: Booting Cassandra v0.7.0 on Windows: rename failed

2010-11-29 Thread Jonathan Ellis
Please report a bug at https://issues.apache.org/jira/browse/CASSANDRA On Mon, Nov 29, 2010 at 2:49 AM, Ramon Rockx wrote: > Hi, > > Recently I downloaded Cassandra v0.7.0 rc1. When I try to run cassandra > it ends with the following logging: > >  INFO 09:17:30,044 Enqueuing flush of > memtable-l

Solr DataImportHandler (DIH) and Cassandra

2010-11-29 Thread Mark
Is there anyway to use DIH to import from Cassandra? Thanks

RE: Booting Cassandra v0.7.0 on Windows: rename failed

2010-11-29 Thread Viktor Jevdokimov
This isn't a first time Cassandra has I/O issues on Windows. I think it's not easy to review source code and eliminate such issues, but would like developers to keep in mind such issues in the future. We're also running a Cassandra cluster on Windows, but 0.7 beta1 (with similar issue, but for

RE: Booting Cassandra v0.7.0 on Windows: rename failed

2010-11-29 Thread Aditya Muralidharan
I've run into this as well. Having confirmed that there are no handles on the file (it's only ever created and used by Cassandra), and having stepped through the code, I've concluded that something in the io (not sure if it's the jvm or the os) stack is lazy about releasing the file handle for '

unsubscribe

2010-11-29 Thread Dave Therrien

Re: word_count example fails in multi-node configuration

2010-11-29 Thread Jeremy Hanna
Roman: I logged a jira ticket about this for further investigation, if you'd like to follow that. https://issues.apache.org/jira/browse/CASSANDRA-1787 On Nov 29, 2010, at 3:14 AM, RS wrote: > Hi guys, > > I am trying to run word_count example from contrib directory (0.7 beta > 3 and 0.7.0 rc

Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread Nate McCall
What does the current line(s) in limits.conf look like? On Mon, Nov 29, 2010 at 2:01 AM, wrote: > I checked and /etc/security/limits.conf on redhat supports zero (0) to > mean unlimited.  Here is the sample from the man page.  Notice the > soft core entry. > > EXAMPLES >       These are some exa

Re: word_count example fails in multi-node configuration

2010-11-29 Thread Jeremy Hanna
Roman: I commented on the ticket - would you mind answering on there? https://issues.apache.org/jira/browse/CASSANDRA-1787 Tx, Jeremy On Nov 29, 2010, at 3:14 AM, RS wrote: > Hi guys, > > I am trying to run word_count example from contrib directory (0.7 beta > 3 and 0.7.0 rc 1). > It works

Re: word_count example fails in multi-node configuration

2010-11-29 Thread Jeremy Hanna
So final answer - known issue with RC1 - https://issues.apache.org/jira/browse/CASSANDRA-1781 - that should be fixed before 0.7.0 is completed. On Nov 29, 2010, at 11:31 AM, Jeremy Hanna wrote: > Roman: > > I logged a jira ticket about this for further investigation, if you'd like to > follow

Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread Jason Pell
* - memlock 0 On Tue, Nov 30, 2010 at 4:40 AM, Nate McCall wrote: > What does the current line(s) in limits.conf look like? > > On Mon, Nov 29, 2010 at 2:01 AM,   wrote: >> I checked and /etc/security/limits.conf on redhat supports zero (0) to >> mean unlimited.  Here

Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread Nate McCall
Ok, I was able to reproduce this with "0" as the value. Changing it to "unlimited" will make this go away. A closer reading of the limits.conf man page seems to leave some ambiguity when taken with the examples: "All items support the values -1, unlimited or infinity indicating no limit, except for

Re: Solr DataImportHandler (DIH) and Cassandra

2010-11-29 Thread Aaron Morton
AFAIK there is nothing pre-written to pull the data out for you. You should be able to create your DataSource sub class http://lucene.apache.org/solr/api/org/apache/solr/handler/dataimport/DataSource.html Using the Hector java library to pull data from Cassandra. I'm guessing you will need to consi

Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread Jason Pell
Awesome thanks will make the changes So is the man page inaccurate? Or is jna doing something wrong? Sent from my iPhone On Nov 30, 2010, at 7:28, Nate McCall wrote: > Ok, I was able to reproduce this with "0" as the value. Changing it to > "unlimited" will make this go away. A closer reading

Re: Cassandra 0.7 beta 3 outOfMemory (OOM)

2010-11-29 Thread Aaron Morton
Sounds like you need to increase the Heap size and/or reduce the memtable_throughput_in_mb and/or turn off the internal caches. Normally the binary memtable thresholds only apply to bulk load operations and it's the per CF memtable_* settings you want to change. I'm not familiar with lucandra thoug

Introduction to Cassandra

2010-11-29 Thread Aaron Morton
I did a talk last week at the Wellington Rails User Group as a basic introduction to Cassandra. The slides are here http://www.slideshare.net/aaronmorton/well-railedcassandra24112010-5901169 if anyone is interested. CheersAaron

Re: Introduction to Cassandra

2010-11-29 Thread Jonathan Ellis
That is a lot of slides. :) Nice work! On Mon, Nov 29, 2010 at 3:11 PM, Aaron Morton wrote: > I did a talk last week at the Wellington Rails User Group as a basic > introduction to Cassandra. The slides are > here http://www.slideshare.net/aaronmorton/well-railedcassandra24112010-5901169 if > an

Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3

2010-11-29 Thread jasonmpell
Hi, Thanks for that your suggestions worked a treat. I created a new cassandra user and set the value to unlimited and I get the desired log: INFO 08:49:50,204 JNA mlockall successful On Tue, Nov 30, 2010 at 7:56 AM, Jason Pell wrote: > Awesome thanks will make the changes > > So is the man

batch_mutate vs number of write operations on CF

2010-11-29 Thread Narendra Sharma
Hi, I am using Cassandra 0.7 beta3 and Hector. I create a mutation map. The mutation involves adding few columns for a given row. After that I use batch_mutate API to send the changes to Cassandra. Question: If there are multiple column writes on same row in a mutation_map, does Cassandra show (

Re: Solr DataImportHandler (DIH) and Cassandra

2010-11-29 Thread Mark
The DataSource subclass route is what I will probably be interested in. Are there are working examples of this already out there? On 11/29/10 12:32 PM, Aaron Morton wrote: AFAIK there is nothing pre-written to pull the data out for you. You should be able to create your DataSource sub class h

Re: batch_mutate vs number of write operations on CF

2010-11-29 Thread Tyler Hobbs
Using batch_mutate on a single row will count as 1 write operation, even if you mutate multiple columns. Using batch_mutate on N rows will count as N write operations. - Tyler On Mon, Nov 29, 2010 at 5:58 PM, Narendra Sharma wrote: > Hi, > > I am using Cassandra 0.7 beta3 and Hector. > > I create

Re: word_count example fails in multi-node configuration

2010-11-29 Thread RS
It occurs in 0.7 beta 3 and 0.7.0 rc 1. Thank you, Jeremy. I will follow the ticket. -Roman On Tue, Nov 30, 2010 at 2:50 AM, Jeremy Hanna wrote: > Roman: > > I commented on the ticket - would you mind answering on there?   > https://issues.apache.org/jira/browse/CASSANDRA-1787 > > Tx, > > Jere

Re: Re: word_count example fails in multi-node configuration

2010-11-29 Thread Bingbing Liu
try the OrderPreservingPartitioner 2010-11-30 Bingbing Liu 发件人: RS 发送时间: 2010-11-30 09:14:38 收件人: user 抄送: 主题: Re: word_count example fails in multi-node configuration It occurs in 0.7 beta 3 and 0.7.0 rc 1. Thank you, Jeremy. I will follow the ticket. -Roman On Tue, Nov 30, 2010

Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Narendra Sharma
Is there any documentation available on what is possible with secondary indexes? For eg - Is it possible to define secondary index on columns within a SuperColumn? - If I define a secondary index at run time, does Cassandra index all the existing data or only new data is indexed? Some documentatio

Re: Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Jonathan Ellis
On Mon, Nov 29, 2010 at 7:59 PM, Narendra Sharma wrote: > Is there any documentation available on what is possible with secondary > indexes? Not yet. > - Is it possible to define secondary index on columns within a SuperColumn? No. > - If I define a secondary index at run time, does Cassandra

Re: Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Narendra Sharma
Thanks Jonathan. Couple of more questions: 1. Is there any technical limit on the number of secondary indexes that can be created? 2. Is it possible to execute join queries spanning multiple secondary indexes? Thanks, Naren On Mon, Nov 29, 2010 at 6:02 PM, Jonathan Ellis wrote: > On Mon, Nov

Re: Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Jonathan Ellis
On Mon, Nov 29, 2010 at 11:26 PM, Narendra Sharma wrote: > Thanks Jonathan. > > Couple of more questions: > 1. Is there any technical limit on the number of secondary indexes that can > be created? Just as with traditional databases, the more indexes there are the slower writes to that CF will be

Re: Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Narendra Sharma
On Mon, Nov 29, 2010 at 9:32 PM, Jonathan Ellis wrote: > On Mon, Nov 29, 2010 at 11:26 PM, Narendra Sharma > wrote: > > Thanks Jonathan. > > > > Couple of more questions: > > 1. Is there any technical limit on the number of secondary indexes that > can > > be created? > > Just as with traditiona

Re: Cassandra 0.7 - documentation on Secondary Indexes

2010-11-29 Thread Tyler Hobbs
The 'employees with age = 35' scenario is exactly what they are useful for. There's a quick section in the pycassa documentation that might be useful: http://pycassa.github.com/pycassa/tutorial.html#indexes On Mon, Nov 29, 2010 at 11:41 PM, Narendra Sharma wrote: > > > On Mon, Nov 29, 2010 at

Re: Achieving isolation on single row modifications with batch_mutate

2010-11-29 Thread Tyler Hobbs
In this case, it sounds like you should combine columns A and B if you are writing them both at the same time, reading them both at the same time, and need them to be consistent. Obviously, you're probably dealing with more than two columns here, but there's generally not any value in splitting so

Re: get_count - cassandra 0.7.x predicate limit bug?

2010-11-29 Thread Tyler Hobbs
What error are you getting? Remember, get_count() is still just about as much work for cassandra as getting the whole row; the only advantage is it doesn't have to send the whole row back to the client. If you're counting 3+ million columns frequently, it's time to take a look at counters. - Tyl

Re: Updating Cascal

2010-11-29 Thread Tyler Hobbs
Are you sure you're using the same key for batch_mutate() and get_slice()? They appear different in the logs. - Tyler On Thu, Nov 25, 2010 at 10:14 AM, Michael Fortin wrote: > Hello, > I forked Cascal (Scala based client for cassandra) and I'm attempting to > update it to cassandra 0.7. I hav

partial matching of keys

2010-11-29 Thread Arijit Mukherjee
Hi All I was wondering if it is possible to match keys partially while searching in Cassandra. I have a requirement where I'm storing a large number of records, the key being something like "A|B|T" where A and B are mobile numbers and T is the time-stamp (the time when A called B). Such format en

Re: Introduction to Cassandra

2010-11-29 Thread Jim Morrison
Really great introduction, thanks Aaron.Bookmarked for the team. J. Sent from my iPhone On 29 Nov 2010, at 21:11, Aaron Morton wrote: > I did a talk last week at the Wellington Rails User Group as a basic > introduction to Cassandra. The slides are here > http://www.slideshare.net/aaro

Re: partial matching of keys

2010-11-29 Thread Tyler Hobbs
Yes, you can basically do this two ways: First, you can use an OrderPreservingPartitioner. This stores your keys in order, so you can grab the range of keys that begin with 'A|B'. Because of the drawbacks of OPP (unbalanced ring, hotspots), you almost certainly don't want to do this. Second, yo