Re: Need help in updating metadata of an existing column family

2012-11-29 Thread Roshan Dawrani
Is it possible to update the column-metadata of a column family definition programmatically? If yes, can someone please point me to the right classes to use? Thanks. On Thu, Nov 29, 2012 at 3:58 PM, Roshan Dawrani wrote: > Hi, > > I have an existing column family that is cre

Re: Subscribe

2012-06-12 Thread Roshan Dawrani
On Tue, Jun 12, 2012 at 8:56 PM, Jayesh Thakrar wrote: > Subscribe > Attempt unsuccessful, ** Was expecting a voice-command in mp3 format **

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-23 Thread Roshan Dawrani
On Wed, May 23, 2012 at 3:07 PM, aaron morton wrote: > When you say > > comparator=BytesType > > > You are telling cassandra that the column names in the CF's are just > bytes. But when you create the column meta data you are specifying the > column names as strings. > > use UTF8Type as the compa

Re: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
:32 PM, "Roshan Dawrani" wrote: > >> Hi, >> >> I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I >> run a "create column family" command with some column meta-data and it runs >> fine, but when I do "describe keyspace", i

Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
Hi, I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I run a "create column family" command with some column meta-data and it runs fine, but when I do "describe keyspace", it shows me different column names for those index columns. a) Here is what I run: "create column family

Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
Hi, I use Cassandra 0.8.5 and am suddenly noticing some strange behavior. I run a "create column family" command with some column meta-data and it runs fine, but when I do "describe keyspace", it shows me different column names for those index columns. a) Here is what I run: "create column family

Re: How to speed up "Waiting for schema agreement" for a single node Cassandra cluster?

2011-10-04 Thread Roshan Dawrani
On Wed, Oct 5, 2011 at 7:42 AM, Jeremiah Jordan < jeremiah.jor...@morningstar.com> wrote: > But truncate is still slow, especially if it can't use JNA (windows) as it > snapshots. Depending on how much data you are inserting during your unit > tests, just paging through all the keys and then dele

Re: [ANN] Usergrid, Open Source Mobile Data Platform built on Cassandra

2011-10-03 Thread Roshan Dawrani
This should be quite helpful as a reference. Thanks! On Mon, Oct 3, 2011 at 9:03 PM, Ed Anuff wrote: > I made mention of this during my presentation at the Cassandra Summit > back in July, but we're finally ready to release the source for > Usergrid. This is a mobile platform stack built on top

Re: Performance degradation observed through embedded cassandra server - pointers needed

2011-09-30 Thread Roshan Dawrani
l blog post here about it: "Grails, Cassandra: Giving each test a clean DB to work with<http://roshandawrani.wordpress.com/2011/09/30/grails-cassandra-giving-each-test-a-clean-db-to-work-with/>" For someone in a similar situation, it may present an alternative. Cheers. On Fri, Sep

Re: Performance degradation observed through embedded cassandra server - pointers needed

2011-09-23 Thread Roshan Dawrani
Thanks for sharing your inputs, Edward. Some comments inline below: On Thu, Sep 22, 2011 at 7:31 PM, Edward Capriolo wrote: > > >> 1) Should should try to dig in an determine why the truncate is slower. > Look for related jira issues on truncation. > I should give it a try. I thought I might get

Performance degradation observed through embedded cassandra server - pointers needed

2011-09-22 Thread Roshan Dawrani
Hi, We recently switched from Cassandra 0.7.2 to 0.8.5 and observing considerable performance degradation in embedded server's response times that we use in integration tests. One thing that we do is that we truncate our app column families after each integration test so that the next one gets a

Re: segment fault with 0.8.5

2011-09-14 Thread Roshan Dawrani
On Wed, Sep 14, 2011 at 3:43 PM, Yan Chunlu wrote: > I also found that the format of configuration file "cassandra.yaml" is > different, are they compatible? > Format of 0.8.5 cassandra.yaml is different from what? You didn't mention what u r comparing it to. I recently did migration of a simple

Re: Error in upgrading cassandra to 0.8.5

2011-09-13 Thread Roshan Dawrani
On Tue, Sep 13, 2011 at 7:03 PM, Jonathan Ellis wrote: > Just remove the row cache files. > Thanks a lot. The 0.8.5 Cassandra started just fine after getting rid of those *KeyCache files. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani

Re: Error in upgrading cassandra to 0.8.5

2011-09-13 Thread Roshan Dawrani
han Ellis wrote: > Just remove the row cache files. > > On Tue, Sep 13, 2011 at 8:23 AM, Roshan Dawrani > wrote: > > Hi, > > I am in the process of upgrading Cassandra to the recently released > v0.8.5 > > and facing an issue. > > We had two Cassandra en

Error in upgrading cassandra to 0.8.5

2011-09-13 Thread Roshan Dawrani
Hi, I am in the process of upgrading Cassandra to the recently released v0.8.5 and facing an issue. We had two Cassandra environments - one having 0.7.0 and another 0.7.2. The upgrade on 0.7.2 has happened smoothly, but on the environment having 0.7.0, when I make the switch, the DB fails to come

Re: Cassandra -f problem

2011-09-12 Thread Roshan Dawrani
said above... but... but... what else could it be? > > Thanks! > > > On Sun, Sep 11, 2011 at 10:05 PM, Roshan Dawrani > wrote: > >> Hi, >> >> Cassandra starts JVM as "$JAVA -ea -cp $CLASSPATH...". >> >> Looks like $JAVA is coming i

Re: Cassandra -f problem

2011-09-11 Thread Roshan Dawrani
Hi, Cassandra starts JVM as "$JAVA -ea -cp $CLASSPATH...". Looks like $JAVA is coming is empty in your case, hence the error "exec -ea not found". Do you not have java installed? Please install it and set JAVA_HOME appropriately and retry. Cheers. On Mon, Sep 12, 2011 at 8:23 AM, Hernán Queved

Re: [RELEASE] Apache Cassandra 0.8.5 released

2011-09-09 Thread Roshan Dawrani
On Thu, Sep 8, 2011 at 8:21 PM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > can take up to 12 hours for the sync to central > Nearly 24 hours now, and 0.8.5 still not available at maven central - http://mvnrepository.com/artifact/org.apache.cassandra/cassandra-all :-( rgds, Rosh

Re: [RELEASE] Apache Cassandra 0.8.5 released

2011-09-08 Thread Roshan Dawrani
Hi, The artefacts at http://mvnrepository.com/artifact/org.apache.cassandra/cassandra-all still do not reflect 0.8.5. Does the availability at maven lag behind by much? Cheers. On Thu, Sep 8, 2011 at 5:45 PM, Sylvain Lebresne wrote: > The Cassandra team is pleased to announce the release of Ap

Re: [RELEASE] Apache Cassandra 0.8.5 released

2011-09-08 Thread Roshan Dawrani
Hi, Looking forward to having 0.8.5 artifacts available from maven repo too. Cheers. On Thu, Sep 8, 2011 at 5:45 PM, Sylvain Lebresne wrote: > The Cassandra team is pleased to announce the release of Apache Cassandra > version 0.8.5. > > Cassandra is a highly scalable second-generation dist

Re: Any tentative data for 0.8.5 release?

2011-09-07 Thread Roshan Dawrani
On Wed, Sep 7, 2011 at 9:15 PM, Jeremy Hanna wrote: > The voting started on Monday and is a 72 hour vote. So if there aren't any > problems that people find, it should be released sometime Thursday (7 > September). > Great. Thanks for quick info. Looking forward to it. -- Roshan Blog: http://

Any tentative data for 0.8.5 release?

2011-09-07 Thread Roshan Dawrani
Hi, Quick check: is there a tentative date for release of Cassandra 0.8.5? Thanks. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani Skype: roshandawrani

Re: Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml?

2011-09-07 Thread Roshan Dawrani
On Wed, Sep 7, 2011 at 7:27 PM, Jonathan Ellis wrote: > No, the "load from yaml" was only supported for upgrading from 0.6. > You'd need to create the schema programatically instead. > Thanks for confirming. I am now creating my keyspace programmatically, but running into another small cassandra

Cassandra 0.8.4 - doesn't support defining keyspaces in cassandra.yaml?

2011-09-06 Thread Roshan Dawrani
Hi, I have just started the process of upgrading Cassandra from 0.7.2 to 0.8.4, and I am facing some issues with embedded cassandra that we utilize in our application. With 0.7.2, we define our keyspace in cassandra.yaml and use Hector to give us an embedded cassandra instance loaded with schema

Re: Dropping a built in secondary index on a CF

2011-04-27 Thread Roshan Dawrani
On Thu, Apr 28, 2011 at 9:56 AM, Xaero S wrote: > > You just need to use the update column family command on the cassandra-cli > and specify the columns and their metadata. To get the metadata of the > columns in the CF, you can do describe keyspace . Keep in mind > that, in your update CF comman

Dropping a built in secondary index on a CF

2011-04-27 Thread Roshan Dawrani
Hi, Can someone please tell me how I can drop a built in secondary index on a column family attribute? I don't see any direct command to do that in the CLI help. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani Skype: roshandawrani

Re: How to change the seed node used to discover other nodes in the ring?

2011-04-21 Thread Roshan Dawrani
On Thu, Apr 21, 2011 at 9:30 PM, Nate McCall wrote: > It will work as long as thrift and gossip are bound to the same > interface. The discovery server in Hector also uses the > CassandraHostConfigurator#getPort for the port in constructing the > host URL. Can you please elaborate a little in t

Re: How to change the seed node used to discover other nodes in the ring?

2011-04-21 Thread Roshan Dawrani
On Thu, Apr 21, 2011 at 9:10 PM, Nate McCall wrote: > Roshan, > See https://issues.apache.org/jira/browse/CASSANDRA-1777 for more details. > Hi...I am not sure I fully understand the current state of auto-discovery of nodes. The impression I am getting looking at the issue details is that auto-

How to change the seed node used to discover other nodes in the ring?

2011-04-21 Thread Roshan Dawrani
Hi, In our Cassandra/Hector environment, we are trying to turn the auto-discovery of nodes in the ring on. We have created the DB using the following default in cassandra.yaml === # Addresses of hosts that are deemed contact points. # Cas

Re: Any way to get different unique time UUIDs for the same time value?

2011-03-31 Thread Roshan Dawrani
perhaps generated the clock sequence in a different way, > >>> such as leaving a certain number of low order bits of the clock > >>> sequence empty and then incrementing those when duplicate timestamps > >>> were generated rather than incrementing the timestamp t

Any way to get different unique time UUIDs for the same time value?

2011-03-30 Thread Roshan Dawrani
Hi, Is there any way I can get multiple unique time UUIDs for the same timestamp value - I mean, the UUIDs that are same in their time (most significant bits), but differ in their least significant bits? The least significant bits added by * me.prettyprint.cassandra.utils.TimeUUIDUtils* seem to b

Re: mutator.execute() timings - big variance noted - pointers needed on understanding/improving it

2011-03-10 Thread Roshan Dawrani
ncomment the verbose GC entries in the cassandra-env.sh file you > should get timing for the server side, pass in the same arguments for your > client. Align time across the 3 files and plot to see if GC is the cause. > > Sridhar > > > > On Thu, Mar 10, 2011 at 9:30 AM, Roshan

mutator.execute() timings - big variance noted - pointers needed on understanding/improving it

2011-03-10 Thread Roshan Dawrani
Hi, I am in the middle of some load testing on a 1-node Cassandra setup. We are not on very high loads yet. We have recorded the timings taken up by mutator.execute() calls and we see this kind of variation during the test run: So, 25% of the times, execute() calls come back in 25 milli-seconds,

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Roshan Dawrani
On Sun, Mar 6, 2011 at 4:54 PM, Roshan Dawrani wrote: > > > -- > keyspaces: > - name: firstname > validator_class: UTF8Type >

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Roshan Dawrani
ndexes is quite sparse, we're grateful for any working > example. > > Cheers > Jürgen > > Am 04.03.2011 19:27, schrieb Roshan Dawrani: > > On Fri, Mar 4, 2011 at 11:52 PM, Jürgen Link > wrote: > >> Hi Jonathan, >> as Roland is already out of office, I&

Re: cant seem to figure out secondary index definition

2011-03-04 Thread Roshan Dawrani
On Fri, Mar 4, 2011 at 11:52 PM, Jürgen Link wrote: > Hi Jonathan, > as Roland is already out of office, I'd like to jump in. > Maybe this somehow got lost in the moddle of this thread, indexing works > fine in our "real" cassandra cluster. > For our test cases, we use an embedded cassandra instan

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
On Thu, Feb 24, 2011 at 6:54 AM, Joshua Partogi wrote: > > I am sorry for not making it clear in my original > post that what I am looking for is the list of keys in the database > assuming that the client application does not know the keys. From what > I understand, RangeSliceQuery requires you t

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
Yes. But I don't think the retrieving keys in the "right order" was part of the original question. :-) On Wed, Feb 23, 2011 at 7:50 PM, Norman Maurer wrote: > yes but be aware that the keys will not in the "right order". > > Bye, > Norman > > 2011/2/2

Re: Is it possible to get list of row keys?

2011-02-23 Thread Roshan Dawrani
On Wed, Feb 23, 2011 at 7:17 PM, Ching-Cheng Chen wrote: > Actually, if you want to get ALL keys, I believe you can still use > RangeSliceQuery with RP. > > Just use setKeys("","") as first batch call. > > Then use the last key from previous batch as startKey for next batch. > Beware that since s

Re: Is it possible to get list of row keys?

2011-02-22 Thread Roshan Dawrani
Does it help: https://github.com/rantav/hector/blob/master/core/src/test/java/me/prettyprint/cassandra/model/RangeSlicesQueryTest.java It uses setReturnKeysOnly()... Same for

Re: Updating/inserting into multiple column families using one mutator batch

2011-02-17 Thread Roshan Dawrani
ogs and ideally memory > consumption as you go. > > On Thu, Feb 17, 2011 at 2:11 PM, Roshan Dawrani > wrote: > > Hi, > > Is it ok to update / insert into multiple column families (some regular, > > some related super column families) using in one batch? > >

Updating/inserting into multiple column families using one mutator batch

2011-02-17 Thread Roshan Dawrani
Hi, Is it ok to update / insert into multiple column families (some regular, some related super column families) using in one batch? I earlier had a few separates mutator.execute() calls hitting these CFs, but I am trying to merge them into a bigger batch. The issue I am facing is that the small

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
gt; stringSerializer.toByteBuffer("UT")); > > indexedSlicesQuery.setColumnFamily("users"); > indexedSlicesQuery.setStartKey(""); > QueryResult> result = > indexedSlicesQuery.execute(); > > It shows the error > > > > The method addGt

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
You didn't see the previously given link? @see: https://groups.google.com/group/hector-users/browse_thread/thread/520c5332dedfca4a 2011/2/17 Raoyixuan (Shandy) > But my requirement is get the data by birth_date and state , how to > achieve it by hector client? > > > >

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
etStartKey(""); > QueryResult> result = > indexedSlicesQuery.execute(); > > It shows the error: > > The method addGtEqual IndexedSlicesQuery is not applicable for the > arguments(String,String) > > > > > > > > *From:* Roshan Dawrani [mailto:

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
That's because in createIndexedSlicesQuery(), you have used SS as the valueSerializer, and then in addGtExpression("birth_date", 1970L), you pass a long as the value. @see: https://groups.google.com/group/hector-users/browse_thread/thread/520c5332dedfca4a 2011/2/17 Raoyixuan (Shandy) > I do th

Re: Slow network writes

2011-02-03 Thread Roshan Dawrani
I think that was originally a voice command - for whoever happened to hear it first :-) On Fri, Feb 4, 2011 at 9:57 AM, buddhasystem wrote: > > Dude, are you asking me to unsubscribe? > > -- > View this message in context: > http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Slow-n

Re: changing JMX port in 0.7

2011-02-02 Thread Roshan Dawrani
:-) On Wed, Feb 2, 2011 at 10:14 PM, Sasha Dolgy wrote: > Silly me. On windows it has to be changed in > $CASSANDRA_HOME/bin/cassandra.bat > > > On Wed, Feb 2, 2011 at 5:39 PM, Sasha Dolgy wrote: > >> An instance of Cassandra starts and is listening on the ports described >> below: >> Port De

Re: cassandra as session store

2011-02-01 Thread Roshan Dawrani
Please do keep this discussion on the mailing list and not take it offline. :-) I will be in the same boat very soon, I think. It will be great to hear from people who have already gone down this road and used Cassandra as a session store in a clustered environment. On Tue, Feb 1, 2011 at 10:56

Re: Cassandra events next week around Strata

2011-01-28 Thread Roshan Dawrani
HelloNo India-based Cassandra / NoSQL events? :-( :-) On Sat, Jan 29, 2011 at 8:31 AM, Jonathan Ellis wrote: > Next week is the Strata conference and not one, not two, but five > Cassandra events! > > In chronological order: > > 1. My Strata Cassandra tutorial Tuesday afternoon: > http://str

Re: get_range_slices getting deleted rows

2011-01-25 Thread Roshan Dawrani
No, checking the key will not do. You will need to check if row.getColumnSlice().getColumns() is empty or not. That's what I do and it works for me. On Wed, Jan 26, 2011 at 4:53 AM, Nick Santini wrote: > thanks, > so I need to check the returned slice for the key to verify that is a valid > row

Re: Basic question on a write operation immediately followed by a read

2011-01-25 Thread Roshan Dawrani
2011/1/25 Wangpei (Peter) > for your 1-node cluster, ANY is the only consistency level that client > may returns BEFORE node write to memory table. > > And read op on the node read both the memory table and SSTable. > > > > It real puzzle me. :( > Please don't be puzzled just yet. :-) As I sa

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
2011/1/25 Wangpei (Peter) > What is the ConsistencyLevel value? Is it ConsistencyLevel.ANY? > > I am using Hector 0.7.0-22 and getting keyspace as * HFactory.createKeyspace()*, which seems to be defaulting the consistency level to QUORAM for both reads and writes. Nowhere else, it is explicitly

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
2011/1/25 Patricio Echagüe > Roshan, when a client invoke a write, the write goes first to commit log > and later to memtable. After that it returns to the client. > > After it reaches the memtable, that data is ready to be read. > > The reads consolidates de data from the memtables and sstables

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
ble configuration : Just wait a second or so to do your "get" query (I > imagine that it works after one second because you don't report this > problem)... Other than that no not really. I have not done any application > with those time constraints. > > Best regards, &g

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
On Tue, Jan 25, 2011 at 9:57 AM, Victor Kabdebon wrote: > As far as I remember, please correct me if I am wrong, on a one node > cluster : > First Commitlog is updated then almost immediatly after order is send to > the memtable to add this new insert. You might have a very short delay > between t

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
2011/1/25 Patricio Echagüe > Roshan, for specifics have a look at > http://wiki.apache.org/cassandra/ArchitectureOverview specially where it > says "Write path". I went through the "Write path" section and have a small follow-up question, please - again assuming a 1-node setup for now. How muc

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
On Tue, Jan 25, 2011 at 9:32 AM, Victor Kabdebon wrote: > Roshan, just remember, what you do on a one node cluster might not be valid > on a 5 node cluster. Depending on the way your insert and query (QUORUM, > ALL, ... ) your data might not be available to get, yet it will be in your > cluster. I

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
dvantage of Cassandra : the data is inserted and > "ready to use" immediately after it has been received by the node. > > Best Regards, > Victor Kabdebon > http://www.voxnucleus.fr > > 2011/1/24 Roshan Dawrani > > Hi, >> >> I have a basic quest

Basic question on a write operation immediately followed by a read

2011-01-24 Thread Roshan Dawrani
Hi, I have a basic question - maybe silly too. Say, I have a 1-node Cassandra setup (no replication, eventual consistency, etc) and I do an insert into a column family and then very close in time to the insert, I do a read on it for the same data. Is there a possibility that my read operation ma

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
nks to everyone who shared their inputs. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani <http://twitter.com/roshandawrani> Skype: roshandawrani On Fri, Jan 21, 2011 at 10:35 AM, Roshan Dawrani wrote: > Back to square one on using CliMain/CliClient vs Cassandr

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
lease tell how I can truncate my column families in my Hector based environment? Does it expose a thrift Cassandra.Client somewhere so I can make calls that its API does not cover yet? Thanks. On Fri, Jan 21, 2011 at 9:12 AM, Roshan Dawrani wrote: > On Fri, Jan 21, 2011 at 8:56 AM, Roshan

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:56 AM, Roshan Dawrani wrote: > On Fri, Jan 21, 2011 at 8:52 AM, Maxim Potekhin wrote: > >> You can script the actions you need and pipe the file into Cassandra-CLI. >> Works for me. >> > > Probably CliMain / CliClient will help me there d

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:52 AM, Maxim Potekhin wrote: > You can script the actions you need and pipe the file into Cassandra-CLI. > Works for me. > Thanks Maxim, but first preference will be to do it through the API and not launch the Cassandra-CLI process with a scripted set of actions (I as

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton wrote: > There is a truncate() function that will clear a CF. It may leave a > snapshot around, cannot remember exactly. > Not sure if Hector (0.7.0-22) has added truncate() to its API yet. I can't find it. In Hector, I see a *dropColumnFamily()* tha

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton wrote: > There is a truncate() function that will clear a CF. It may leave a > snapshot around, cannot remember exactly. > > Or you could drop and recreate the keyspace between tests using > system_add_keyspace() and system_drop_keyspace(). The system

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 5:14 AM, Anand Somani wrote: > Here is what worked for me, I use testNg, and initialize and createschema > in the @BeforeClass for each test > >- In the @AfterClass, I had to drop schema, otherwise I was getting the >same exception. >- After this I started gett

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 3:02 AM, Aaron Morton wrote: > Do you have a full error stack? > > That error is raised when the schema is added to an internal static map. > There is a lot of static state so it's probably going to make your life > easier if you can avoid reusing the JVM. > > Hi Aaron, Ac

Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
Hi, I am using Cassandra for a Grails application and in that I start the embedded server when the Spring application context gets built. When I run my Grails app test suite - it first runs the integration and then functional test suite and it builds the application text individually for each pha

Re: Is there any way I could use keys of other rows as column names that could be sorted according to time ?

2011-01-14 Thread Roshan Dawrani
On Fri, Jan 14, 2011 at 8:51 PM, Aklin_81 wrote: > I just read that cassandra internally creates a md5 hash that is used > for distributing the load by sending it to a node reponsible for the > range within which that md5 hash falls, so even when we create > sequential keys, their MD5 hash is not

Re: Different comparator types for column and supercolumn don't work

2011-01-14 Thread Roshan Dawrani
On Fri, Jan 14, 2011 at 6:04 PM, Karin Kirsch wrote: > Hello, > > I'm new to cassandra. I'm using cassandra release 0.7.0 (local, single > node). I can't perform write operations in case the column and supercolumn > families have > different comparator types. For example if I use the code given in

Re: Is there any way I could use keys of other rows as column names that could be sorted according to time ?

2011-01-14 Thread Roshan Dawrani
I am not clear what you guys are trying to do and say :-) So, let's take some specifics... Say you want to create rows in some column family (say CF_A), and as you create them, you want to store their row key in column names in some other column family (say CF_B) - possibly for filtering keys bas

Re: Is there any way I could use keys of other rows as column names that could be sorted according to time ?

2011-01-14 Thread Roshan Dawrani
On Fri, Jan 14, 2011 at 7:15 PM, Aklin_81 wrote: > @Roshan > Yes, I thought about that, but then I wouldn't be able to use the > Random Partitioner. > > Can you please expand a bit on this? What is this restriction? Can you point me to some relevant documentation on this? Thanks.

Re: Is there any way I could use keys of other rows as column names that could be sorted according to time ?

2011-01-14 Thread Roshan Dawrani
It's possible that I am misunderstanding the question in some way. The row keys can be Time UUIDs and with those row keys as column names, u can use comparator TIMEUUIDTYPE to have them sorted by time automatically. On Fri, Jan 14, 2011 at 9:18 AM, Aaron Morton wrote: > You could make the time a

Re: how to do a get_range_slices where all keys start with same string

2011-01-11 Thread Roshan Dawrani
On Wed, Jan 12, 2011 at 7:41 AM, Koert Kuipers < koert.kuip...@diamondnotch.com> wrote: > Ok I see get_range_slice is really only useful for paging with RP... > > So if I were using OPP (which I am not) and I wanted all keys starting with > "com.google", what should my start_key and end_key be? >

Re: TimeUUID question

2011-01-07 Thread Roshan Dawrani
The thread here may help: http://www.mail-archive.com/user@cassandra.apache.org/msg08393.html On Fri, Jan 7, 2011 at 6:27 PM, Arijit Mukherjee wrote: > Hi > > I'm using the piece of code given in the FAQ > (http://wiki.apache.org/cassandra/FAQ#working_with_timeuuid_in_java) > to convert a Date t

Re: quick question about super columns

2011-01-06 Thread Roshan Dawrani
On Fri, Jan 7, 2011 at 12:12 PM, Arijit Mukherjee wrote: > Thank you. And is it similar if I want to search a subcolumn within a > given supercolumn? I mean I have the supercolumn key and the subcolumn > key - can I fetch the particular subcolumn? > > Can you share a small piece of example code fo

Re: quick question about super columns

2011-01-06 Thread Roshan Dawrani
On Fri, Jan 7, 2011 at 11:39 AM, Arijit Mukherjee wrote: > Hi > > I've a quick question about supercolumns. > EventRecord = { >eventKey2: { >e2-ts1: {set of columns}, >e2-ts2: {set of columns}, >... >e2-tsn: {set of columns} >} > > } > > If I want to

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Roshan Dawrani
Hi Patricio, Some thoughts inline. 2011/1/6 Patricio Echagüe > Roshan, the first 64 bits does contain the version. The method > UUID.timestamp() indeed takes it out before returning. You are right in that > point. I based my comment on the UUID spec. > I know 64 bits have the version, but time

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Roshan Dawrani
Hi Patricio, Thanks for your comment. Replying inline. 2011/1/5 Patricio Echagüe > Roshan, just a comment in your solution. The time returned is not a simple > long. It also contains some bits indicating the version. I don't think so. The version bits from the most significant 64 bits of the

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Roshan Dawrani
== t1); } } On Wed, Jan 5, 2011 at 8:15 AM, Roshan Dawrani wrote: > If I use *com.eaio.uuid.UUID* directly, then I am able to do what I need > (attached a Java program for the same), but unfortunately I need to

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Roshan Dawrani
Any suggestion on how I can achieve the equivalent using Hector library's TimeUUIDUtils? On Wed, Jan 5, 2011 at 7:21 AM, Roshan Dawrani wrote: > Hi Victor / Patricio, > > I have been using Hector library's TimeUUIDUtils. I also just looked at > TimeUUIDUtilsTest also but didn&#x

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Roshan Dawrani
>> >> You can create a UUID using TimeUUIDUtils.getTimeUUID(long time); or >> TimeUUIDUtils.getTimeUUID(ClockResolution clock) >> >> and later on, TimeUUIDUtils.getTimeFromUUID(..) or just UUID.timestamp(); >> >> There are some example in TimeUUIDUtilsTest.java >

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Roshan Dawrani
that together and you have your uuid. > . > So unless you save your random number two UUID for the same milli( or > micro) second are different. > > Best regards, > Victor K. > http://www.voxnucleus.fr > > 2011/1/4 Roshan Dawrani > > Hi, >> I am having a

Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Roshan Dawrani
Hi, I am having a little difficulty converting a time UUID to its timestamp equivalent and back. Can someone please help? Here is what I am trying. Is it not the right way to do it? === UUID someUUID = TimeUUIDUtils.getUniqueTimeUUID

Re: Cassandra / Tomcat - Unrecognized Windows Sockets error: 0: JVM_Bind

2010-12-30 Thread Roshan Dawrani
Yes, that was it. Thanks a lot. Changed the JMX port in "cassandra.bat", where I didn't look earlier. On Fri, Dec 31, 2010 at 5:53 AM, Jonathan Ellis wrote: > probably the JMX port which defaults to 8080. > > On Thu, Dec 30, 2010 at 6:16 PM, Roshan Dawrani >

Cassandra / Tomcat - Unrecognized Windows Sockets error: 0: JVM_Bind

2010-12-30 Thread Roshan Dawrani
Hi, I am currently having a locally installed Cassandra server running for some development work. When I try to bring up Tomcat, it fails saying === 2010-12-31 05:36:52,088 [main] ERROR http11.Http11Protocol - Error initializin

Re: Any GUI for Cassandra database on Windows?

2010-12-27 Thread Roshan Dawrani
t; Thanks, > Naren > > > On Mon, Dec 27, 2010 at 7:37 PM, Roshan Dawrani > wrote: > >> Hi, >> >> Is there a GUI client for a Cassandra database for a Windows based setup? >> >> I tried the one available at http://code.google.com/p/cassandra-gui/, but &

Re: The mutations to delete sub-columns can't be batched?

2010-12-27 Thread Roshan Dawrani
ank you for bringing > this up. > > On Sun, Dec 26, 2010 at 10:47 PM, Roshan Dawrani > wrote: > > There doesn't really seem to be an inherent limitation in batching > > sub-column deletes. > > > > Pelops seem to be doing it - > > > http://pelops.google

Any GUI for Cassandra database on Windows?

2010-12-27 Thread Roshan Dawrani
Hi, Is there a GUI client for a Cassandra database for a Windows based setup? I tried the one available at http://code.google.com/p/cassandra-gui/, but it always fails to connect with "error: Cannot read. Remote site has closed. Tried to read 4 bytes, but only got 0 bytes." -- Roshan Blog: http

Re: I have TimeUUID sorted keys. Can I get the range query return rows in the same order as sorted keys?

2010-12-27 Thread Roshan Dawrani
ed to use OPP to perform range scans. Look for Range Queries on >> http://wiki.apache.org/cassandra/DataModel >> >> Look at this to understand why range queries are not supported for >> RamdomPartitioner (https://issues.apache.org/jira/browse/CASSANDRA-1750) >> >> T

Re: I have TimeUUID sorted keys. Can I get the range query return rows in the same order as sorted keys?

2010-12-27 Thread Roshan Dawrani
ren > > > On Mon, Dec 27, 2010 at 6:12 AM, Roshan Dawrani > wrote: > >> This silly question is retrieved back with apology. There couldn't be >> anything easier to handle at the application level. >> >> rgds, >> Roshan >> >> >&g

Re: I have TimeUUID sorted keys. Can I get the range query return rows in the same order as sorted keys?

2010-12-27 Thread Roshan Dawrani
This silly question is retrieved back with apology. There couldn't be anything easier to handle at the application level. rgds, Roshan On Mon, Dec 27, 2010 at 9:04 AM, Roshan Dawrani wrote: > Hi, > I have the following 2 column families - one being used to store full rows > for

Re: The mutations to delete sub-columns can't be batched?

2010-12-26 Thread Roshan Dawrani
, Dec 27, 2010 at 10:07 AM, Roshan Dawrani wrote: > Which "No"? > > 1) No, it is "not" correct correct that they can't be batched, or > > 1) No, they can't be batched > > :-) > > > > On Mon, Dec 27, 2010 at 10:04 AM, Jonathan Ellis w

Re: The mutations to delete sub-columns can't be batched?

2010-12-26 Thread Roshan Dawrani
Which "No"? 1) No, it is "not" correct correct that they can't be batched, or 1) No, they can't be batched :-) On Mon, Dec 27, 2010 at 10:04 AM, Jonathan Ellis wrote: > On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani > wrote: > > Is it correct

Re: Retrieving TimeUUID sub-columns in reverse order

2010-12-26 Thread Roshan Dawrani
you are slicing within a single supercolumn, > the reverse parameter will affect the order of subcolumns. > > On Sun, Dec 26, 2010 at 6:11 AM, Roshan Dawrani > wrote: > > Hi Ran, > > I am not doing it the YAML way.

I have TimeUUID sorted keys. Can I get the range query return rows in the same order as sorted keys?

2010-12-26 Thread Roshan Dawrani
Hi, I have the following 2 column families - one being used to store full rows for an entity and other is an index table for having the TimeUUID sorted row keys. I am able to query the TimeUUID columns under the super column fine. But now I need to go to main CF and get the data and I want the row

The mutations to delete sub-columns can't be batched?

2010-12-26 Thread Roshan Dawrani
Hi, Is it correct that mutations that delete subcolumns of a super column can't be batched - unlike inserts and deletes of normal columns? If yes, could someone share why that is so? Thanks. -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani

Re: Retrieving TimeUUID sub-columns in reverse order

2010-12-26 Thread Roshan Dawrani
/ Twitter: @roshandawrani <http://twitter.com/roshandawrani> Skype: roshandawrani On Sun, Dec 26, 2010 at 5:31 PM, Ran Tavory wrote: > Roshan, in cassandra.yaml did you define compare_subcolumns_with for the > SCF? > The subcolumn names are the timeuuid, not the subcolumn values,

Retrieving TimeUUID sub-columns in reverse order

2010-12-25 Thread Roshan Dawrani
Hi, I have a super ColumnFamily that has a few super columns, with each having a growing list of sub-columns where column name is a TimeUUID, so the sub-columns get stored chronologically (oldest to newest) When I retrieve this data, can I somehow retrieve the sub-columns in reverse order - newes

  1   2   >