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 roshandawr...@gmail.comwrote: Hi, I have an existing column family

Re: Subscribe

2012-06-12 Thread Roshan Dawrani
On Tue, Jun 12, 2012 at 8:56 PM, Jayesh Thakrar j_thak...@yahoo.com 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 aa...@thelastpickle.comwrote: 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

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: Cassandra 0.8.5: Column name mystery in create column family command

2012-05-22 Thread Roshan Dawrani
-2012 4:32 PM, Roshan Dawrani roshandawr...@gmail.com 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, it shows me different column names for those

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 deleting

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 e...@anuff.com 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

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

2011-09-30 Thread Roshan Dawrani
, Cassandra: Giving each test a clean DB to work withhttp://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 23, 2011 at 1:29 PM, Roshan Dawrani roshandawr

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 edlinuxg...@gmail.comwrote: 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

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 springri...@gmail.com 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

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

Re: Error in upgrading cassandra to 0.8.5

2011-09-13 Thread Roshan Dawrani
remove the row cache files. On Tue, Sep 13, 2011 at 8:23 AM, Roshan Dawrani roshandawr...@gmail.com 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 environments - one having 0.7.0 and another 0.7.2. The upgrade

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 jbel...@gmail.com 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: Cassandra -f problem

2011-09-12 Thread Roshan Dawrani
... but... but... what else could it be? Thanks! On Sun, Sep 11, 2011 at 10:05 PM, Roshan Dawrani roshandawr...@gmail.comwrote: 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

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 Quevedo

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 sylv...@datastax.comwrote: The Cassandra team is pleased to announce the release of Apache Cassandra version 0.8.5. Cassandra is a highly scalable

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 jbel...@gmail.com 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

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 http://twitter.com/roshandawrani Skype: roshandawrani

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 jeremy.hanna1...@gmail.comwrote: 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.

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-28 Thread Roshan Dawrani
On Thu, Apr 28, 2011 at 9:56 AM, Xaero S xaeros...@gmail.com 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 keyspacename. Keep in mind

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 http://twitter.com/roshandawrani Skype: roshandawrani

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. #

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 n...@datastax.com 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

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 n...@datastax.com 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

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

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: mutator.execute() timings - big variance noted - pointers needed on understanding/improving it

2011-03-10 Thread Roshan Dawrani
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 Dawrani roshandawr...@gmail.comwrote: Hi, I am in the middle of some

Re: cant seem to figure out secondary index definition

2011-03-06 Thread Roshan Dawrani
? As documentation of indexes 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 juergen.l...@googlemail.comwrote: Hi Jonathan, as Roland is already out of office, I'd like to jump

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 roshandawr...@gmail.comwrote: -- keyspaces: - name: firstname validator_class: UTF8Type

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 juergen.l...@googlemail.comwrote: 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

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 cc...@evidentsoftware.com 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.

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 nor...@apache.org wrote: yes but be aware that the keys will not in the right order. Bye, Norman 2011/2/23 Roshan Dawrani roshandawr

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 joshua.j...@gmail.comwrote: 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,

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 https://github.com/rantav/hector/blob/master/core/src/test/java/me/prettyprint/cassandra/model/RangeSlicesQueryTest.javaIt uses setReturnKeysOnly()... Same for

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

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

2011-02-17 Thread Roshan Dawrani
consumption as you go. On Thu, Feb 17, 2011 at 2:11 PM, Roshan Dawrani roshandawr...@gmail.com wrote: 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

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)

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
: The method addGtEqualEpression(String,Long) in the type IndexedSlicesQueryString,String,Long is not applicable for the arguments(String,String) *From:* Roshan Dawrani [mailto:roshandawr...@gmail.com] *Sent:* Thursday, February 17, 2011 10:37 AM *To:* user@cassandra.apache.org *Subject:* Re

Re: indexedslicesQuery class error

2011-02-16 Thread Roshan Dawrani
:* Roshan Dawrani [mailto:roshandawr...@gmail.com] *Sent:* Thursday, February 17, 2011 10:48 AM *To:* user@cassandra.apache.org *Subject:* Re: indexedslicesQuery class error addGtEqual??? You are still making the same mistake. You are now saying that your values are going to be long

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 potek...@bnl.gov wrote: Dude, are you asking me to unsubscribe? -- View this message in context:

Re: changing JMX port in 0.7

2011-02-02 Thread Roshan Dawrani
:-) On Wed, Feb 2, 2011 at 10:14 PM, Sasha Dolgy sdo...@gmail.com 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 sdo...@gmail.com wrote: An instance of Cassandra starts and is listening on the ports

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 jbel...@gmail.com 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:

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

2011-01-25 Thread Roshan Dawrani
2011/1/25 Wangpei (Peter) peter.wang...@huawei.com 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

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 nick.sant...@kaseya.comwrote: thanks, so I need to check the returned slice for the key to verify

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

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

2011-01-24 Thread Roshan Dawrani
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 roshandawr...@gmail.com Hi, I have a basic question - maybe silly too. Say, I have a 1-node Cassandra setup

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 victor.kabde...@gmail.comwrote: 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

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 victor.kabde...@gmail.comwrote: 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

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

2011-01-24 Thread Roshan Dawrani
2011/1/25 Wangpei (Peter) peter.wang...@huawei.com 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

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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 3:02 AM, Aaron Morton aa...@thelastpickle.comwrote: 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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 5:14 AM, Anand Somani meatfor...@gmail.com 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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton aa...@thelastpickle.comwrote: 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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton aa...@thelastpickle.comwrote: 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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:52 AM, Maxim Potekhin potek...@bnl.gov 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

Re: Embedded Cassandra server startup question

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

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
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 roshandawr...@gmail.comwrote: On Fri, Jan 21, 2011 at 8:56 AM

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
) } = Thanks 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 roshandawr...@gmail.comwrote: Back to square one on using

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 aa...@thelastpickle.comwrote:

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 asdk...@gmail.com 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
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

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? I think

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 ariji...@gmail.com 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

Re: quick question about super columns

2011-01-06 Thread Roshan Dawrani
On Fri, Jan 7, 2011 at 12:12 PM, Arijit Mukherjee ariji...@gmail.comwrote: 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

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 patric...@gmail.com 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

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 patric...@gmail.com 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

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 roshandawr...@gmail.com Hi, I am having a little difficulty converting

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

2011-01-04 Thread Roshan Dawrani
suggestion on how I can achieve the equivalent using Hector library's TimeUUIDUtils? On Wed, Jan 5, 2011 at 7:21 AM, Roshan Dawrani roshandawr...@gmail.comwrote: Hi Victor / Patricio, I have been using Hector library's TimeUUIDUtils. I also just looked at TimeUUIDUtilsTest also but didn't find anything

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

2011-01-04 Thread Roshan Dawrani
); } } On Wed, Jan 5, 2011 at 8:15 AM, Roshan Dawrani roshandawr...@gmail.comwrote: 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

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

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