Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB635DC27 for ; Tue, 30 Oct 2012 12:31:21 +0000 (UTC) Received: (qmail 32648 invoked by uid 500); 30 Oct 2012 12:31:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 32281 invoked by uid 500); 30 Oct 2012 12:31:19 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 32249 invoked by uid 99); 30 Oct 2012 12:31:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 12:31:17 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.174.58.134] (HELO XEDGEA.nrel.gov) (192.174.58.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2012 12:31:13 +0000 Received: from XHUBB.nrel.gov (10.20.4.59) by XEDGEA.nrel.gov (192.174.58.134) with Microsoft SMTP Server (TLS) id 8.3.245.1; Tue, 30 Oct 2012 06:30:42 -0600 Received: from MAILBOX2.nrel.gov ([fe80::19a0:6c19:6421:12f]) by XHUBB.nrel.gov ([::1]) with mapi; Tue, 30 Oct 2012 06:30:52 -0600 From: "Hiller, Dean" To: "user@cassandra.apache.org" Date: Tue, 30 Oct 2012 06:30:51 -0600 Subject: Re: ColumnFamilyInputFormat - error when column name is UUID Thread-Topic: ColumnFamilyInputFormat - error when column name is UUID Thread-Index: Ac22mmWv7O5mDYWCReK7c11ffw7Ugg== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.4.120824 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org If you want to avoid the type 1 opaque type uuid's, PlayOrm also does a sim= ple key generator if you do @NoSqlId Private String id; It uses the simple hostname(not mac) like a1, a2, a3 which is the names in = our cluster plus a unique timestamp within the node. We do not expose the = subdomain that is used so in general we though it not to be as much of a se= curity risk. In this fashion, we sometimes have web pages with the hidden = id field that has those strings in it. Both of these are guaranteed to be unique. Other types are guaranteed to b= e unique 9.99999% of the time(some really high threshold) Dean From: Marcelo Elias Del Valle > Reply-To: "user@cassandra.apache.org" > Date: Monday, October 29, 2012 3:31 PM To: "user@cassandra.apache.org" > Subject: Re: ColumnFamilyInputFormat - error when column name is UUID Dean, Are type 1 UUIDs the best ones to use if I want to avoid conflict? I s= aw this page: http://en.wikipedia.org/wiki/Universally_unique_identifier The only problem with type 1 UUIDs is they are "not opaque"? I know th= ere is one kind of UUID that can generate two equal values if you generate = them at the same milisecond, but I guess I was confusing them... Best regards, Marcelo Valle. 2012/10/29 Hiller, Dean > Hmm, this brings the question of what uuid libraries are others using? I k= now this one generates type 1 UUIDs with two longs so it is 16 bytes. http://johannburkard.de/software/uuid/ Thanks, Dean From: Marcelo Elias Del Valle >> Reply-To: "user@cassandra.apache.org>" >> Date: Monday, October 29, 2012 1:17 PM To: "user@cassandra.apache.org>" >> Subject: Re: ColumnFamilyInputFormat - error when column name is UUID Answering myself: it seems we can't have any non type 1 UUIDs in column nam= es. I used the UTF8 comparator and saved my UUIDs as strings, it worked. -- Marcelo Elias Del Valle http://mvalle.com - @mvallebr