If I always send the schema change requests to one particular node in the cassandra cluster.

2011-08-03 Thread Dikang Gu
Hi, Can the schema disagreement problem be avoided? Thanks. -- Dikang Gu 0086 - 18611140205

Re: HOW TO select a column or all columns that start with X

2011-08-03 Thread eldad87
Thank you! Will this situation work only for UTF8Type comparator? On Wed, Aug 3, 2011 at 4:50 AM, Tyler Hobbs ty...@datastax.com wrote: A minor correction: To get all columns starting with ABC_, you would set column_start=ABC_ and column_finish=ABC` (the '`' character comes after '_'), and

Re: Nodetool ring not showing all nodes in cluster

2011-08-03 Thread Aishwarya Venkataraman
I finally solved this by using nodetool move and specifying token number explicitly. Thanks for all your help !! Cheers, Aishwarya On Tue, Aug 2, 2011 at 5:31 PM, aaron morton aa...@thelastpickle.com wrote: initial_token is read from the yaml file once only, during bootstrap. It is then

Re: cassandra consistency level

2011-08-03 Thread Eldad Yamin
So what you're saying is that no matter what consistency level I'm using, the data will be written to all CF nodes right away, the consistency level is just for making sure that all CF nodes are UP and all data is written. In other words, if one of the nodes is down - the write (or read) will

Re: Question about eventually consistent in Cassandra

2011-08-03 Thread Sam Overton
A slight correction/clarification: 1) DeletedColumns always win. If there are two deletes the highest timestamp wins DeletedColumns only take precedence over a normal value if they have a greater *(or equal)* timestamp. *DeletedColumns always win* is only true if you're talking about two

Sample Cassandra project in Tomcat

2011-08-03 Thread CASSANDRA learner
Hiii, Can any one pleaze send me any sample application which is (.war) implemented in java/jsp and cassandra db (Tomcat)

Killing cassandra is not working

2011-08-03 Thread CASSANDRA learner
H,, I was running cassandra in my mac and after some time the machine got to sleep mode. Now after the machine is On. I tried to kill the process of cassandra. But i could not able to do that as i could not able to find out the process id. theres no process there when i pinged PS command in

Re: Sample Cassandra project in Tomcat

2011-08-03 Thread samal
I don't know much about this, may help you.. http://www.codefreun.de/apolloUI/ http://www.codefreun.de/apollo/ On Wed, Aug 3, 2011 at 3:36 PM, CASSANDRA learner cassandralear...@gmail.com wrote: Hiii, Can any one pleaze send me any sample application which is (.war) implemented in

Re: Killing cassandra is not working

2011-08-03 Thread Nilabja Banerjee
try to use *grep* command to check the port where your cassandra was running. On 3 August 2011 16:01, CASSANDRA learner cassandralear...@gmail.comwrote: H,, I was running cassandra in my mac and after some time the machine got to sleep mode. Now after the machine is On. I tried to

Re: Sample Cassandra project in Tomcat

2011-08-03 Thread Benoit Perroud
I suppose what you are looking for is an example of interacting with a java app. You should have a look at the high(er) level client hector https://github.com/rantav/hector/ You should find what you are looking for there. If you are looking for a tomcat (and .war) example, you should send an

Re: Killing cassandra is not working

2011-08-03 Thread Benoit Perroud
Seems like you have already a Cassandra instance running, so the second instance cannot open the same port twice. I would suggest you to kill all instances of Cassandra and start it again. 2011/8/3 Nilabja Banerjee nilabja.baner...@gmail.com try to use *grep* command to check the port where

Re: Killing cassandra is not working

2011-08-03 Thread CASSANDRA learner
Thnks for the reply Nila When i did PS command, I could not able to find any process related to cassandra. Thts the problem.. On Wed, Aug 3, 2011 at 4:12 PM, Benoit Perroud ben...@noisette.ch wrote: Seems like you have already a Cassandra instance running, so the second instance cannot

Re: Sample Cassandra project in Tomcat

2011-08-03 Thread CASSANDRA learner
Hi, Thnks for the info On Wed, Aug 3, 2011 at 4:03 PM, samal sa...@wakya.in wrote: I don't know much about this, may help you.. http://www.codefreun.de/apolloUI/ http://www.codefreun.de/apollo/ On Wed, Aug 3, 2011 at 3:36 PM, CASSANDRA learner cassandralear...@gmail.com wrote: Hiii,

Exception encountered during startup - org.apache.cassandra.db.marshal.MarshalException: UUIDs must be exactly 16 bytes

2011-08-03 Thread jens müller
Hello, I would be thankfull for any advice how to recover from the following problem: 1.) When I Start Cassandra, then I get the following exception: INFO 12:51:08,964 Heap size: 1573912576/1574961152 INFO 12:51:08,966 JNA not found. Native methods will be disabled. INFO 12:51:08,973 Loading

Re: Killing cassandra is not working

2011-08-03 Thread Benoit Perroud
so use netstat to find out which process had opened the port. 2011/8/3 CASSANDRA learner cassandralear...@gmail.com Thnks for the reply Nila When i did PS command, I could not able to find any process related to cassandra. Thts the problem.. On Wed, Aug 3, 2011 at 4:12 PM, Benoit

Significance of java_pidxxx.hprof

2011-08-03 Thread CASSANDRA learner
As per subject, Please explain me what is the significance of java_pidxxx.hprof

Re: Sample Cassandra project in Tomcat

2011-08-03 Thread Benoit Perroud
2011/8/3 CASSANDRA learner cassandralear...@gmail.com: Hi,  can you please send me the mailing list address of tomcat http://tomcat.apache.org/lists.html On Wed, Aug 3, 2011 at 4:07 PM, Benoit Perroud ben...@noisette.ch wrote: I suppose what you are looking for is an example of interacting

Re: Schema Disagreement

2011-08-03 Thread aaron morton
It means the node you ran the command against could not contact node 192.168.1.25 it's probably down. Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 3 Aug 2011, at 14:03, Dikang Gu wrote: I followed the instructions in the

Re: Cassandra encountered an internal error processing this request: TApplicationError type: 6 message:Internal error

2011-08-03 Thread aaron morton
There really should be something logged at the ERROR level in the server side log, that error is raised when an unhanded exception bubbles out to the thrift layer on the server. Double check the logging is configured correctly. Cheers - Aaron Morton Freelance Cassandra

Re: If I always send the schema change requests to one particular node in the cassandra cluster.

2011-08-03 Thread aaron morton
Yes. Only run one schema change at a time, and only do it when the cluster has converged to a single schema. The CLI checks for this. What process are you following now ? Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 3 Aug

Re: HOW TO select a column or all columns that start with X

2011-08-03 Thread aaron morton
and AsciiType - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 3 Aug 2011, at 16:35, eldad87 wrote: Thank you! Will this situation work only for UTF8Type comparator? On Wed, Aug 3, 2011 at 4:50 AM, Tyler Hobbs ty...@datastax.com

Re: cassandra consistency level

2011-08-03 Thread aaron morton
In other words, if one of the nodes is down - the write (or read) will fail. No. Cassandra will always try to get a write distributed to RF nodes. The Consistency Level is how many replicas you want to be written before you accept the request was a success. e.g. with RF 3 and QUORUM you are

Re: Do we have any restrictions on the number of column families in a keyspace?

2011-08-03 Thread aaron morton
There were never any restrictions other than common sense. The more you make, even under 0.8, the more frequently you have to flush to disk. 0.8 automates the memory management, which used to involve random guesses, and basically makes it's usable. So I'm just saying there is a down side. If

Re: Question about eventually consistent in Cassandra

2011-08-03 Thread aaron morton
yup, my bad. A - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 3 Aug 2011, at 19:45, Sam Overton wrote: A slight correction/clarification: 1) DeletedColumns always win. If there are two deletes the highest timestamp wins

Re: HOW TO select a column or all columns that start with X

2011-08-03 Thread Eldad Yamin
Thanks! On Wed, Aug 3, 2011 at 3:03 PM, aaron morton aa...@thelastpickle.comwrote: and AsciiType - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 3 Aug 2011, at 16:35, eldad87 wrote: Thank you! Will this situation work only

Install Cassandra on EC2

2011-08-03 Thread Eldad Yamin
Hi, Is there any manual or important notes I should know before I try to install Cassandra on EC2? Thanks!

Re: Exception encountered during startup - org.apache.cassandra.db.marshal.MarshalException: UUIDs must be exactly 16 bytes

2011-08-03 Thread Sylvain Lebresne
This is a known bug: https://issues.apache.org/jira/browse/CASSANDRA-2867 (note that the issue title is not exact, in that this is not a problem with an upgrade from 0.7 to 0.8). This will be corrected in 0.8.3 that is under a vote right now to be released. -- Sylvain On Wed, Aug 3, 2011 at

Re: Install Cassandra on EC2

2011-08-03 Thread John Conwell
One thing you might want to look at is the Apache Whirr project (which is awesome by the way!). It automagically handles spinning up a cluster of resources on EC2 (or rackspace for that matter), installing and configuring cassandra, and starting it. One thing to be aware of if you go this route.

Re: Install Cassandra on EC2

2011-08-03 Thread Eldad Yamin
Thanks! But I prefer to learn how to Install first - if you have any good references (I didn't find any, even general installation for a EC2/regular machine) I'm also going to try and install Solandra, I hope that Whirr will support it in the near future. On Wed, Aug 3, 2011 at 5:43 PM, John

Cassandra and Solandra Installation guid

2011-08-03 Thread Eldad Yamin
Hi, I'd like to get tutorials on how to install Cassandra and Solandra - I couldn't find anything helpful. In addition, how to use (index/search) Solandra tutorials will be great. Thanks!

Re: CQL: How to escape single quotes?

2011-08-03 Thread Jens Hartung
Hi, thank's for your help. This does work. Odd, when you generally escape special chars with an backslash. Original-Nachricht Datum: Tue, 02 Aug 2011 21:42:44 -0500 Von: Eric Evans eev...@rackspace.com An: user@cassandra.apache.org Betreff: Re: CQL: How to escape single

Re: HOW TO select a column or all columns that start with X

2011-08-03 Thread Ed Anuff
I believe you can set start to be ABC_ and finish to be ABC_\ (for UTF8) to get everything that contains exactly ABC_ and set finish to ABC_\ to get everything that starts with ABC_. You probably want to do a simple string comparison test to verify. On Tue, Aug 2, 2011 at 6:50 PM, Tyler

Installation Exception

2011-08-03 Thread Eldad Yamin
Hi, I'm trying to install Cassandra on Amazon EC2 without success, this is what I did: 1. Created new Small EC2 instance (this is just for testing), running Ubuntu OS - custom AIM (ami-596f3c1c) from: http://uec-images.ubuntu.com/releases/11.04/release/ 2. Installed Java: # sudo

Re: Installation Exception

2011-08-03 Thread samal
did u compile source code? :) you have downloaded source code not binary. try with binary. On Wed, Aug 3, 2011 at 9:14 PM, Eldad Yamin elda...@gmail.com wrote: Hi, I'm trying to install Cassandra on Amazon EC2 without success, this is what I did: 1. Created new Small EC2 instance (this

Re: Installation Exception

2011-08-03 Thread Jonathan Ellis
http://www.datastax.com/dev/blog/setting-up-a-cassandra-cluster-with-the-datastax-ami On Wed, Aug 3, 2011 at 10:44 AM, Eldad Yamin elda...@gmail.com wrote: Hi, I'm trying to install Cassandra on Amazon EC2 without success, this is what I did: Created new Small EC2 instance (this is just for

Re: Install Cassandra on EC2

2011-08-03 Thread Dave Viner
Hi Eldad, Check out http://wiki.apache.org/cassandra/CloudConfig There are a few ways listed there including a step-by-step guide. Dave Viner On Wed, Aug 3, 2011 at 7:49 AM, Eldad Yamin elda...@gmail.com wrote: Thanks! But I prefer to learn how to Install first - if you have any good

Re: Question about eventually consistent in Cassandra

2011-08-03 Thread mcasandra
What happens when DC is in different time zone so 9:00 pacific vs 11:00 Central -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Question-about-eventually-consistent-in-Cassandra-tp6646430p6649490.html Sent from the

Re: Install Cassandra on EC2

2011-08-03 Thread Jeremy Hanna
Some quick thoughts that might be helpful: - use ephemeral instances and RAID0 over the local volumes for both cassandra's data as well as the log directory. The log directory because if you crash due to heap size, the heap dump will be stored in the log directory. you don't want that to go

How to monitor progress of nodetool repair?

2011-08-03 Thread Gary Ogasawara
Running v0.8.2, I can't see how to monitor the status/progress of a nodetool repair. Any advice? The nodetool repair command from the command line is not returning, so I assume it's still running. But there's little CPU or disk activity. Using jconsole to look at the AntiEntropyStage

Re: Installation Exception

2011-08-03 Thread Eldad Yamin
Thanks Jonathan, I saw the EC2 AMI that was made by datastax - I prefer not to use it becuse I want to learn how to install Cassandra first. On Wed, Aug 3, 2011 at 8:03 PM, Jonathan Ellis jbel...@gmail.com wrote:

Re: Installation Exception

2011-08-03 Thread Eldad Yamin
Thanks! I missed that lol! BTW, how do I compile it? Thanks! On Wed, Aug 3, 2011 at 6:51 PM, samal sa...@wakya.in wrote: did u compile source code? :) you have downloaded source code not binary. try with binary. On Wed, Aug 3, 2011 at 9:14 PM, Eldad Yamin elda...@gmail.com wrote: Hi,

Planet Cassandra (an aggregation site for Cassandra News)

2011-08-03 Thread Lynn Bender
Greetings all, I just wanted to send a note out to let everyone know about Planet Cassandra -- an aggregation site for Cassandra news and blogs. Andrew Llavore from DataStax and I built the site. We are currently waiting for approval from the Apache Software Foundation before we publicly launch.

Re: Planet Cassandra (an aggregation site for Cassandra News)

2011-08-03 Thread Ed Anuff
Awesome, great news! On Wed, Aug 3, 2011 at 11:53 AM, Lynn Bender line...@gmail.com wrote: Greetings all, I just wanted to send a note out to let everyone know about Planet Cassandra -- an aggregation site for Cassandra news and blogs. Andrew Llavore from DataStax and I built the site. We

Re: cassandra server disk full

2011-08-03 Thread Ryan King
The last patch on that ticket is what we're running in prod. Its working well for us with disk_failure_mode: readwrite. In the case of filesystem errors the node shuts off thrift and gossip. While the gossip is propagating we can continue to serve some reads out of the caches. -ryan On Tue, Aug

Solandra

2011-08-03 Thread Eldad Yamin
Hello, I have a cluster of 3 Cassandra nodes and I would like to start using Solandra. 1. How can I install Solandra and make use the existing nodes? 2. Will it be better to install Solandra on a new node and add it to the existing cluster? 3. How Solandra index, does it operate automatically or I

Re: Install Cassandra on EC2

2011-08-03 Thread aaron morton
Pre build AMI here http://www.datastax.com/dev/blog/setting-up-a-cassandra-cluster-with-the-datastax-ami Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 4 Aug 2011, at 03:24, Jeremy Hanna wrote: Some quick thoughts that might

Re: Write everywhere, read anywhere

2011-08-03 Thread Patricio Echagüe
On Wed, Aug 3, 2011 at 4:00 PM, Philippe watche...@gmail.com wrote: Hello, I have a 3-node, RF=3, cluster configured to write at CL.ALL and read at CL.ONE. When I take one of the nodes down, writes fail which is what I expect. When I run a repair, I see data being streamed from those column

Re: HOW TO select a column or all columns that start with X

2011-08-03 Thread Boris Yen
It seems to me that your column name consists of two components. If you have the luxury to upgrade your cassandra to 0.8.1+, I think you can think about using the composite type/column. Conceptually, it might suit your use case better. On Wed, Aug 3, 2011 at 5:28 AM, Eldad Yamin elda...@gmail.com

Re: Input on difficult migration issue from 0.7.4 to 0.8.2

2011-08-03 Thread Todd Nine
Hi Johnathan, One more question. I'm experimenting with the chef recipes for brisk. Upon the initial installation, the brisk recipe removes the existing system Keyspace if it's present. The new cluster will not have the Spidertracks keyspace in it's meta data, and will be a completely

Re: Input on difficult migration issue from 0.7.4 to 0.8.2

2011-08-03 Thread Jonathan Ellis
You'd have to check ColumnFamilyStore.open to see for sure. It might work that way, but if it does it's an accident -- seems totally fair for it to assume that there are no SSTables for a newly created CF. On Wed, Aug 3, 2011 at 9:25 PM, Todd Nine t...@spidertracks.com wrote: ** Hi Johnathan,