Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 15484 invoked from network); 2 Feb 2011 21:39:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 21:39:56 -0000 Received: (qmail 44542 invoked by uid 500); 2 Feb 2011 21:39:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 44036 invoked by uid 500); 2 Feb 2011 21:39:52 -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 43912 invoked by uid 99); 2 Feb 2011 21:39:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 21:39:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vedarthk@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 21:39:45 +0000 Received: by iwc10 with SMTP id 10so445743iwc.31 for ; Wed, 02 Feb 2011 13:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=6PNLU72dn/EN658XlY98iG2dl98WnuU6WQKvBmkIEKo=; b=qMj4fJECMaWV+1xzY0F3l/puYJWGVaLeVv9UwW29E7GLJNC7YLjza30IAprA1ui9UH qDqqtGZJW0dH8xB19/macMuyd0BhEAFFnA5/c+BVGQgOTUWXpw8u2c6zUKbdIqI4vWYx 3aCHYnUo7V/Aa39Vo9x8AX3rS1HNr0GjUuy7s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=oOAu1mJF8pfH9WqMrlSWAYLiNO5DEGK4tkd6HsmE+XRKxh0a4EY2iHwcvsmKXCTA2A 7Ys4qJXE0fGYS9iWO1utMcmGRAPU0bLJ1chooQwyJPtuF7/mdVLOFVKduR5BlJMGahr7 KBmr7149fNhz/fQrn5cT+ebLwJJH3C5GHQzvA= Received: by 10.42.224.136 with SMTP id io8mr11858376icb.29.1296682764597; Wed, 02 Feb 2011 13:39:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.149.137 with HTTP; Wed, 2 Feb 2011 13:39:04 -0800 (PST) In-Reply-To: References: From: Vedarth Kulkarni Date: Thu, 3 Feb 2011 03:09:04 +0530 Message-ID: Subject: Re: how to change compare_with To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf3056411f91fc3d049b537b07 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3056411f91fc3d049b537b07 Content-Type: text/plain; charset=ISO-8859-1 I tried "help update column family". It gave me : *valid attributes are: - column_type: Super or Standard - comment: Human-readable column family description. Any string is acceptable - rows_cached: Number or percentage of rows to cache - row_cache_save_period: Period with which to persist the row cache, in seconds - keys_cached: Number or percentage of keys to cache - key_cache_save_period: Period with which to persist the key cache, in seconds - read_repair_chance: Probability (0.0-1.0) with which to perform read repairs on CL.ONE reads - gc_grace: Discard tombstones after this many seconds - column_metadata: null - memtable_operations: Flush memtables after this many operations - memtable_throughput: ... or after this many bytes have been written - memtable_flush_after: ... or after this many seconds - default_validation_class: null - min_compaction_threshold: Avoid minor compactions of less than this number of sstable files - max_compaction_threshold: Compact no more than this number of sstable files at once - column_metadata: Metadata which describes columns of column family. Supported format is [{ k:v, k:v, ... }, { ... }, ...] Valid attributes: column_name, validation_class (see comparator), index_type (integer), index_name. *So what is to be used ? And also if possible please provide information on how do that in Java using Hector. Thank you. Vedarth Kulkarni, TYBSc (Computer Science). On Thu, Feb 3, 2011 at 2:58 AM, Jonathan Ellis wrote: > On Wed, Feb 2, 2011 at 12:48 PM, Vedarth Kulkarni > wrote: > > Hello there, > > > > I am using Cassandra 0.7. Is there any way to change the 'compare_with' > from > > my program ?, I am using Hector and I am programming in Java. > > Yes. > > > Is it possible to change it from the bin/cassandra-cli ? > > Yes. "help update column family;" > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com > --20cf3056411f91fc3d049b537b07 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tried "help update column family".
It gave me :

va= lid attributes are:
=A0=A0=A0 - column_type: Super or Standard
=A0=A0= =A0 - comment: Human-readable column family description. Any string is acce= ptable
=A0=A0=A0 - rows_cached: Number or percentage of rows to cache
=A0=A0=A0= - row_cache_save_period: Period with which to persist the row cache, in se= conds
=A0=A0=A0 - keys_cached: Number or percentage of keys to cache
= =A0=A0=A0 - key_cache_save_period: Period with which to persist the key cac= he, in seconds
=A0=A0=A0 - read_repair_chance: Probability (0.0-1.0) with which to perform= read repairs on CL.ONE reads
=A0=A0=A0 - gc_grace: Discard tombstones a= fter this many seconds
=A0=A0=A0 - column_metadata: null
=A0=A0=A0 - = memtable_operations: Flush memtables after this many operations
=A0=A0=A0 - memtable_throughput: ... or after this many bytes have been wri= tten
=A0=A0=A0 - memtable_flush_after: ... or after this many seconds=A0=A0=A0 - default_validation_class: null
=A0=A0=A0 - min_compaction_t= hreshold: Avoid minor compactions of less than this number of sstable files=
=A0=A0=A0 - max_compaction_threshold: Compact no more than this number of s= stable files at once
=A0=A0=A0 - column_metadata: Metadata which describ= es columns of column family.
=A0=A0=A0=A0=A0=A0=A0 Supported format is [= { k:v, k:v, ... }, { ... }, ...]
=A0=A0=A0=A0=A0=A0=A0 Valid attributes: column_name, validation_class (see = comparator),
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 index_type (integer), index_name.

So what is = to be used ?
And also if possible please provide information on how do t= hat in Java using Hector.
Thank you.


Vedarth Kulkarni,
TYBSc (Computer Sc= ience).



On Thu, Feb 3, 2011 at 2:58 AM, Jonathan= Ellis <jbellis@g= mail.com> wrote:
On Wed, Feb 2, 2011 at 12:48 PM, Vedarth Kulkarni <vedarthk@gmail.com> wrote:
> Hello there,
>
> I am using Cassandra 0.7. Is there any way to change the 'compare_= with' from
> my program ?, I am using Hector and I am programming in Java.

Yes.

> Is it possible to change it from the bin/cassandra-cli ?

Yes. =A0"help update column family;"

--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.c= om

--20cf3056411f91fc3d049b537b07--