Re: Schema change causes exception when adding data

2012-03-07 Thread Tyler Hobbs
On Wed, Mar 7, 2012 at 2:10 AM, Tharindu Mathew wrote: > Sometimes still the schema does not come into agreement... I wonder > whether this issue is solved the newer versions? I believe there has been some improvement in this area in recent versions, but I think it's also still true that you sh

Re: Schema change causes exception when adding data

2012-03-07 Thread Tharindu Mathew
Hi Folks, Managed to solve this problem to an extent. I used the thrift api just for this client and did a thread sleep until the schema comes into agreement. The addColumnFamily(CF, boolean) is not available in the Hector I use. Anyway, I checked the code in Hector trunk. The approach is almost

Re: Schema change causes exception when adding data

2012-03-06 Thread Tamar Fraenkel
Hi! Maybe I didn't understand, but if you use Hector's addColumnFamily(CF, true); it should wait for schema agreement. Will that solve your problem? Thanks *Tamar Fraenkel * Senior Software Engineer, TOK Media [image: Inline image 1] ta...@tok-media.com Tel: +972 2 6409736 Mob: +972 54 83564

Re: Schema change causes exception when adding data

2012-03-06 Thread Jeremiah Jordan
That is the best one I have found. On 03/01/2012 03:12 PM, Tharindu Mathew wrote: There are 2. I'd like to wait till there are one, when I insert the value. Going through the code, calling client.describe_schema_versions() seems to give a good answer to this. And I discovered that if I wait t

Re: Schema change causes exception when adding data

2012-03-05 Thread aaron morton
I don't have a lot of Hector experience but it sounds like the way to go. The CLI and cqlsh will take care of this. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 2/03/2012, at 10:12 AM, Tharindu Mathew wrote: > There are 2. I'd like to

Re: Schema change causes exception when adding data

2012-03-01 Thread Tharindu Mathew
There are 2. I'd like to wait till there are one, when I insert the value. Going through the code, calling client.describe_schema_versions() seems to give a good answer to this. And I discovered that if I wait till there is only 1 version, I will not get this error. Is this the best practice if I

Re: Schema change causes exception when adding data

2012-03-01 Thread aaron morton
use describe cluster in the CLI to see how many schema versions there are. Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 2/03/2012, at 12:25 AM, Tharindu Mathew wrote: > > > On Thu, Mar 1, 2012 at 11:47 AM, Tharindu Mathew wrote: > Je

Re: Schema change causes exception when adding data

2012-03-01 Thread Tharindu Mathew
On Thu, Mar 1, 2012 at 11:47 AM, Tharindu Mathew wrote: > Jeremiah, > > Thanks for the reply. > > This is what we have been doing, but it's not reliable as we don't know a > definite time that the schema would get replicated. Is there any way I can > know for sure that changes have propagated? > [

Re: Schema change causes exception when adding data

2012-02-29 Thread Tharindu Mathew
Jeremiah, Thanks for the reply. This is what we have been doing, but it's not reliable as we don't know a definite time that the schema would get replicated. Is there any way I can know for sure that changes have propagated. Then I can block the insertion of data until then. On Thu, Mar 1, 2012

RE: Schema change causes exception when adding data

2012-02-29 Thread Jeremiah Jordan
The error is that the specified colum family doesn't exist. If you connect with the CLI and describe the keyspace does it show up? Also, after adding a new column family programmatically you can't use it immediately, you have to wait for it to propagate. You can use calls to describe schema to d