Re:Re: Count of SliceRange in get_slice seems not to work

2010-11-18 Thread Hayarobi Park
I inspected some code of the cluster ring. Thread [ReadStage:6] (Suspended) SuperColumn.isMarkedForDelete() line: 87 SliceQueryFilter.collectReducedColumns(IColumnContainer, IteratorIColumn, int) line: 138

Re: Count of SliceRange in get_slice seems not to work

2010-11-18 Thread aaron morton
Sorry, I'm not following your example. Could you describe the request you sent, what you expected to get back and what you actually got back. Are you able to reproduce the fault in a clean install, e.g. load this data, run these commands and then it goes bang ? Aaron On 18 Nov 2010, at

Re: using SimpleAuthenticator is not working

2010-11-18 Thread aaron morton
I *think* that message is just from when the connection is closed. Sorry this is a hard one to help with, as it's more than likely something to do with your client app. Some guessing... Everything is working if you do not use the authenticator ? Can you inspect the ports on the server and

test

2010-11-18 Thread zhen ye
just test...

RE: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Dr. Andrew Perella
Hi Tyler, insert does not seem to have a have a return value. However a stranger thing has now happened - the problem has just gone away in the last hour. Hard to believe nothing changed I am sure! I have tried simulating timestamps from earlier when it wasn't working and still cannot get it

Cassandra OutOfMemoryError

2010-11-18 Thread Nick Reeves
I was trying to get Cassandra 0.6.8 (latest stable release) going for the first time and my attempts at getting the example code to run caused Cassandra to die with out a JavaMemoryError just by connecting cassandra-cli to cassandra. java.lang.OutOfMemoryError: Java heap space at

Re: Cassandra OutOfMemoryError

2010-11-18 Thread Peter Schuller
Looking at the thrift code it is allocating arrays based on lengths read of the wire, without adequate validation of the length. This allows client errors to crash the server :( This is fixed with latest cassandra and current versions of thrift. I don't remember whether it was a thrift bug in

Re: using SimpleAuthenticator is not working

2010-11-18 Thread Alaa Zubaidi
Hi Aaron, Thanks for the help.. If I don't use the Authenticator, and keep it at AllowAll it will work find.. I tried provide an invalid password but it behaved the same... Here is what i am doing: MapString, String creds = new HashMapString, String(); creds.put(username, pwd);

RE: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Dr. Andrew Perella
UPDATE: Solved After digging deeper I realised that I had patched fastbinary incorrectly for compiling under visual studio on windows and was left with the wrong endian define. As the app often worked it never crossed my mind to check this out! Many thanks Tyler for all your suggestions.

Load Vs Disk Space Usage

2010-11-18 Thread Brayton Thompson
We're playing around with Cassandra trying to get a feel for it. Can someone please explain the difference between load (from nodetool) and whats actually stored on disk? Sometimes these number mirror each other and sometimes the disk usage is up to 2x the load reported. as you can see below...

Re: Load Vs Disk Space Usage

2010-11-18 Thread Peter Schuller
We're playing around with Cassandra trying to get a feel for it. Can someone please explain the difference between load (from nodetool) and whats actually stored on disk? Sometimes these number mirror each other and sometimes the disk usage is up to 2x the load reported. as you can see

Update made via cassandra-cli disappeared from PHP thrift client

2010-11-18 Thread Jared Laprise
Hello all, I have a very strange issue where I updated a column value with the cassandra-cli command line interface and I can see with the cli tool that the value is there and correct. When I query the same column via PHP and Thrift no value is returned. I can make updates to any other column

Re: Update made via cassandra-cli disappeared from PHP thrift client

2010-11-18 Thread Tyler Hobbs
What Cassandra version? What PHP client? How are you doing the insert with the CLI? What is your query with PHP? - Tyler On Thu, Nov 18, 2010 at 3:07 PM, Jared Laprise ja...@webonyx.com wrote: Hello all, I have a very strange issue where I updated a column value with the cassandra-cli

Re: Cassandra OutOfMemoryError

2010-11-18 Thread Jonathan Ellis
Step 0: don't use raw Thrift, use one of the clients from http://wiki.apache.org/cassandra/ClientOptions06 On Thu, Nov 18, 2010 at 10:49 AM, Nick Reeves n...@realvnc.com wrote: I was trying to get Cassandra 0.6.8 (latest stable release) going for the first time and my attempts at getting the

Re: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Jonathan Ellis
Interesting! Did you post your patch to the Thrift project? On Thu, Nov 18, 2010 at 2:13 PM, Dr. Andrew Perella a...@eutechnyx.com wrote: UPDATE:  Solved After digging deeper I realised that I had patched fastbinary incorrectly for compiling under visual studio on windows and was left with

RE: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Dr. Andrew Perella
Thanks for the reminder - I will submit the patch :) -Original Message- From: Jonathan Ellis [mailto:jbel...@gmail.com] Sent: 18 November 2010 21:37 To: user Subject: Re: casssandra 0.7beta3, pycassa and windows client timestamps Interesting! Did you post your patch to the Thrift

Re: using SimpleAuthenticator is not working

2010-11-18 Thread Nick Bailey
I believe the map of credentials should be creds.put(username, your_username); creds.put(password, your_password); So you have two entries in the map, one for user and one for password. No idea why that call would be hanging though. On Thu, Nov 18, 2010 at 1:46 PM, Alaa Zubaidi

RE: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Dr. Andrew Perella
Actually it turns out there is a submitted patch for this already from January 2009 but it was never accepted due to a complaint about an unnecessary cast! I have modified and resubmitted the patch. -Original Message- From: Dr. Andrew Perella [mailto:a...@eutechnyx.com] Sent: 18

Re: casssandra 0.7beta3, pycassa and windows client timestamps

2010-11-18 Thread Tyler Hobbs
Ouch. Thanks for taking the time to handle that. - Tyler On Thu, Nov 18, 2010 at 4:29 PM, Dr. Andrew Perella a...@eutechnyx.comwrote: Actually it turns out there is a submitted patch for this already from January 2009 but it was never accepted due to a complaint about an unnecessary cast! I

how to display column value in human-readable format in 0.7 beta3

2010-11-18 Thread xie jinlin
Hi: I get column value from cassandra 0.6 as (column=2WwADF3V3A0A5b, value=1WwACGIHDn0A45, timestamp=1286949750195000)) format but get (column=2WwADF3V3A0A5b, value=3157774143474948446e30413435, timestamp=1286949750195000)) from 0.7 beta3 how can I get the column value in human-readable

Re: Count of SliceRange in get_slice seems not to work

2010-11-18 Thread Hayarobi Park
I found the reason (in the view of client side). I used unit test of my DAO class. the test class inserted test row and columns before doing test, and then do test, finally delete inserted columns after test. The test was succeeded at first. When I do that test again, the test code attempt to

Re: using SimpleAuthenticator is not working

2010-11-18 Thread Alaa Zubaidi
Thanks, its working now... On 11/18/2010 1:50 PM, Nick Bailey wrote: I believe the map of credentials should be creds.put(username, your_username); creds.put(password, your_password); So you have two entries in the map, one for user and one for password. No idea why that call would be hanging

Data model design question

2010-11-18 Thread Nanheng Wu
Hi, Our team decided to use Cassandra as storage solution to a dataset. I am very new to the NoSQL world and Cassandra so I am hoping to get some help from the community: The dataset is pretty simple, we have for each key a number of columns with values. Each day we compute a new version of this

Re: how to display column value in human-readable format in 0.7 beta3

2010-11-18 Thread Aaron Morton
Not sure how you are reading the data, but try setting the comparator to ASCII or similar. This will tell Cassandra that the column names are strings. Aaron On 19/11/2010, at 4:47 PM, xie jinlin hnxi...@gmail.com wrote: Hi: I get column value from cassandra 0.6 as

Re: how to display column value in human-readable format in 0.7 beta3

2010-11-18 Thread xie jinlin
thanks. this is detail info. ColumnFamily: PostInbox (Super) Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type/org.apache.cassandra.db.marshal.UTF8Type Subcolumns sorted by: org.apache.cassandra.db.marshal.UTF8Type Row cache size / save period: 0.0/0 Key cache

Re: Data model design question

2010-11-18 Thread André Fiedler
There´s a simple comparison that helped me a lot taking my first steps with cassandra: keyspace = database CF = table ;o) And this one: http://arin.me/blog/wtf-is-a-supercolumn-cassandra-data-model Btw, love the new secondary indexes in cassandra 0.7, this saves a lot of time and work! But