RE: Using Cli to create a column family with column name metadata question
Hi, Thanks for the replay. I'm not talking about the column name. I'm talking about the column metadata's column name. Right now cli can't not display the column's meta name correctly if the comparator type is not UTF8. Regards, Arsene -Original Message- From: Jonathan Ellis [mailto:jbel...@gmail.com] Sent: Friday, November 04, 2011 11:09 PM To: user Subject: Re: Using Cli to create a column family with column name metadata question [Moving to user@] Because Cassandra's sparse data model supports using rows as materialized views, having non-UTF8 column names is common and totally valid. On Fri, Nov 4, 2011 at 5:19 AM, Arsene Lee arsene@ruckuswireless.com wrote: Hi, I'm trying to use Column Family's metadata to do some validation. I found out that in Cassandra's CLI CliClient.java code when trying to create a column family with column name metadata. It is based on CF's comparator type to convert the name String to ByteBuffer. I'm wondering if there is any particular reason for this? For the column name metadata shouldn't it be easier just to all use UTF8Type. Because if CF's comparator is other than UTF8Type, it is hard to convert the column name back. Regards, Arsene Lee -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com
RE: Using Cli to create a column family with column name metadata question
Hi, I tried the assume and column metadata's column name still not right. I think CLI shouldn't use comparator type to convert the column meta string. It should all use UTF8 to convert column name metadata. Regards, Arsene -Original Message- From: Brandon Williams [mailto:dri...@gmail.com] Sent: Tuesday, November 08, 2011 9:49 AM To: user@cassandra.apache.org Subject: Re: Using Cli to create a column family with column name metadata question On Mon, Nov 7, 2011 at 7:36 PM, Arsene Lee arsene@ruckuswireless.com wrote: Hi, Thanks for the replay. I'm not talking about the column name. I'm talking about the column metadata's column name. Right now cli can't not display the column's meta name correctly if the comparator type is not UTF8. Try 'help assume;' -Brandon
Using Cli to create a column family with column name metadata question
Hi, I'm trying to use Column Family's metadata to do some validation. I found out that in Cassandra's CLI CliClient.java code when trying to create a column family with column name metadata. It is based on CF's comparator type to convert the name String to ByteBuffer. I'm wondering if there is any particular reason for this? For the column name metadata shouldn't it be easier just to all use UTF8Type. Because if CF's comparator is other than UTF8Type, it is hard to convert the column name back. Regards, Arsene Lee
Using snapshot for backup and restore
Hi, We are trying to use snapshot for backup and restore. We found out that snapshot doesn't take secondary indexes. We are wondering why is that? And is there any way we can rebuild the secondary index? Regards, Arsene
RE: Using snapshot for backup and restore
If snapshot doesn't include secondary indexes then we can't use it for our backup and restore procedure. . This mean, we need to stop our service when we want to do backups and this would cause longer system down time. If there is no particular reason, it is probably a good idea to also include secondary indexes when taking the snapshot. Arsene From: aaron morton [aa...@thelastpickle.com] Sent: Tuesday, May 03, 2011 7:28 PM To: user@cassandra.apache.org Subject: Re: Using snapshot for backup and restore Looking at the code for the snapshot it looks like it does not include secondary indexes. And I cannot see a way to manually trigger an index rebuild (via CFS.buildSecondaryIndexes()) Looking at this it's probably handy to snapshot them https://issues.apache.org/jira/browse/CASSANDRA-2470 I'm not sure if there is a reason for excluding them. Is this causing a problem right now ? Aaron On 3 May 2011, at 20:22, Arsene Lee wrote:https://issues.apache.org/jira/browse/CASSANDRA-2470 Hi, We are trying to use snapshot for backup and restore. We found out that snapshot doesn’t take secondary indexes. We are wondering why is that? And is there any way we can rebuild the secondary index? Regards, Arsene