Question about Token selection for order-preserving partitioner
Hi, I read the wiki topic Operationshttp://wiki.apache.org/cassandra/Operationsand I don't understant way to use Token selection for order-preserving partitioner (application-dependent). I want create blog comment use TimeUUIDType and order-preserving for range query, this cluster run in 3 nodes. How to add token, config seeds and more to run this cluster? Thank very much. KhaNguyễn
Re: Question about Token selection for order-preserving partitioner
Hi! I think, my question is not clearly. I don't know to config these nodes for this cluster. I want to use TimeUUIDType and order-preserving partitioner for range query. How to config InitialToken and seeds for node01, node02, node03. I see the wiki topic Operations explain InitialToken for order-preserving partitioner: [With order preserving partioners, your key distribution will be application-dependent. You should still take your best guess at specifying initial tokens (guided by sampling actual data, if possible), but you will be more dependent on active load balancing (see below) and/or adding new nodes to hot spots.]' I don't know [application-dependent]. And I don't know config seeds section every node. Sorry for my english. On Tue, Feb 16, 2010 at 7:58 PM, Wojciech Kaczmarek kaczmare...@gmail.comwrote: Hi! 2010/2/16 Nguyễn Minh Kha nminh...@gmail.com I read the wiki topic Operationshttp://wiki.apache.org/cassandra/Operationsand I don't understant way to use Token selection for order-preserving partitioner (application-dependent). I want create blog comment use TimeUUIDType and order-preserving for range query, this cluster run in 3 nodes. How to add token, config seeds and more to run this cluster? Thank very much. The order-preserving partitioner will use keys as tokens. The type you're talking about could be the column type but that's another thing.
Re: Question about Token selection for order-preserving partitioner
Hi, Thank Wojciech, I use TimeUUIDType for CF Comments, I'm not use it for init token. On Tue, Feb 16, 2010 at 11:45 PM, Wojciech Kaczmarek kaczmare...@gmail.comwrote: Hi! My comment was supposed to mean that you don't use TimeUUIDType as a token because it's a possible column type, not a key type (at least is what I know from a wiki and my short experience, I didn't check the source). You've probably mistaken sorting of different columns within a row (which depends on a type of column) with sorting of your keys which is possible when using order-preserving partitioner. The sorting of keys seems to depend only on a specific partitioner class used in config. Application-specific keys distribution means that you should predict how your keys will be generated in order to set seeds for your nodes. If you're in doubt and this is your test environment you could just leave InitialToken empty. It would help if you told us what the semantics of your keys are. 2010/2/16 Nguyễn Minh Kha nminh...@gmail.com Hi! I think, my question is not clearly. I don't know to config these nodes for this cluster. I want to use TimeUUIDType and order-preserving partitioner for range query. How to config InitialToken and seeds for node01, node02, node03. I see the wiki topic Operations explain InitialToken for order-preserving partitioner: [With order preserving partioners, your key distribution will be application-dependent. You should still take your best guess at specifying initial tokens (guided by sampling actual data, if possible), but you will be more dependent on active load balancing (see below) and/or adding new nodes to hot spots.]' I don't know [application-dependent]. And I don't know config seeds section every node. Sorry for my english. On Tue, Feb 16, 2010 at 7:58 PM, Wojciech Kaczmarek kaczmare...@gmail.com wrote: Hi! 2010/2/16 Nguyễn Minh Kha nminh...@gmail.com I read the wiki topic Operationshttp://wiki.apache.org/cassandra/Operationsand I don't understant way to use Token selection for order-preserving partitioner (application-dependent). I want create blog comment use TimeUUIDType and order-preserving for range query, this cluster run in 3 nodes. How to add token, config seeds and more to run this cluster? Thank very much. The order-preserving partitioner will use keys as tokens. The type you're talking about could be the column type but that's another thing. -- Nguyen Minh Kha NCT Corporation Email : kh...@nct.vn Mobile : 090 696 1314 Y!M : iminhkha
Re: How to UUID in .Net
Thank Jonathan, I will try to port to C Sharp. On Sat, Jan 9, 2010 at 7:47 AM, Jonathan Ellis jbel...@gmail.com wrote: I didn't see any C# libraries that generate type 1 UUIDs. You might have to port this one from java: http://johannburkard.de/software/uuid/ 2010/1/8 Nguyễn Minh Kha nminh...@gmail.com: Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to Cassandra thow an exception TimeUUID only makes sense with version 1 UUIDs I used uuidgen.exe (Windows SDK) to gen this Guid. Pls help me resolve this problem. Thanks -- Nguyen Minh Kha NCT Corporation Email : kh...@nct.vn Mobile : 090 696 1314 Y!M : iminhkha
How to UUID in .Net
Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to Cassandra thow an exception TimeUUID only makes sense with version 1 UUIDs I used uuidgen.exe (Windows SDK) to gen this Guid. Pls help me resolve this problem. Thanks