Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 43585 invoked from network); 26 Oct 2010 01:43:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 01:43:51 -0000 Received: (qmail 55109 invoked by uid 500); 26 Oct 2010 01:43:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 55076 invoked by uid 500); 26 Oct 2010 01:43:49 -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 55068 invoked by uid 99); 26 Oct 2010 01:43:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 01:43:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [156.154.25.104] (HELO neustar.com) (156.154.25.104) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 01:43:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neustar.biz; s=neustarbiz; t=1288057402; x=1603389793; q=dns/txt; h=From:Date:Subject:Message-ID:Content-Language: Content-Type; bh=+65+MZF8gib9DPml/51hfwGork6X25KMgCm93ltTizc=; b=LYjGrOGDlCMvRExK2N5XitOgREetDN52AJk+n2LIVH2iRasvMESSlxdpfdZ0ho qakL3brefjnaPEigceWuZMOA== Received: from ([10.31.13.242]) by chihiron1.nc.neustar.com with ESMTP with TLS id 5202942.32948742; Mon, 25 Oct 2010 21:43:21 -0400 Received: from STNTEXCH02.cis.neustar.com ([fe80::f828:7b2d:14aa:84b7]) by STNTEXCHHT03.cis.neustar.com ([::1]) with mapi; Mon, 25 Oct 2010 21:43:21 -0400 From: "Damick, Jeffrey" To: "user@cassandra.apache.org" Date: Mon, 25 Oct 2010 21:43:19 -0400 Subject: Re: keys_cached percent? Thread-Topic: keys_cached percent? Thread-Index: Act0rZAqWlyCbrNYSUeBCY2aUKDznAAAZpDk Message-ID: In-Reply-To: <7fd2347d-02f3-eead-87a6-d1ce4009f933@me.com> Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-ems-proccessed: R64IxjzeHPwwd+efoj3ZcA== x-ems-stamp: UIoamPS6Rpyesiyh16/aQg== Content-Type: multipart/alternative; boundary="_000_C8EBAA77B213jeffreydamickneustarbiz_" MIME-Version: 1.0 --_000_C8EBAA77B213jeffreydamickneustarbiz_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sure - so percents aren't supported anymore in 0.7.x, which is fine, I just= wanted to clarify. thanks On 10/25/10 9:31 PM, "Aaron Morton" wrote: To cache 100% set the value to 1. The comments in the yaml below do explici= tly say this, but its discussed here http://wiki.apache.org/cassandra/Stora= geConfiguration?highlight=3D(keys)|(cached) Aaron On 26 Oct, 2010,at 02:02 PM, "Damick, Jeffrey" = wrote: I tried a few variations, but when it set it to: 100% or "100%" or similar= I get: ERROR 19:37:31,898 Fatal error: null; Can't construct a java object for tag= :yaml.org,2002:org.apache.cassandra.config.Config; exception=3DCannot creat= e property=3Dkeyspaces for JavaBean=3Dorg.apache.cassandra.config.Config@32= 955cd5; Cannot create property=3Dcolumn_families for JavaBean=3Dorg.apache.= cassandra.config.RawKeyspace@31b446d1; Cannot create property=3Dkeys_cached= for JavaBean=3Dorg.apache.cassandra.config.RawColumnFamily@c68c26c; For in= put string: "100%" Bad configuration; unable to start server It looks like if it's yaml it doesn't pass through the FBUtils.parseDoubleO= rPercent(), and since the bean has a double the yaml deserializer is blowin= g up... Just a guess.. -jeff On 10/25/10 3:51 PM, "Aaron Morton" wrote: It should do, this is the comment from the yaml # - keys_cached: specifies the number of keys per sstable whose # locations we keep in memory in "mostly LRU" order. (JUST the key # locations, NOT any column values.) Specify a fraction (value less # than 1) or an absolute number of keys to cache. Defaults to 20000= 0 # keys. Is it not working? Aaron On 26 Oct, 2010,at 08:45 AM, "Damick, Jeffrey" = wrote: Does 0.7 not support percentages in the keys_cached (in the yaml config)? = (I'm on 07.0b2 so maybe it has been fixed?) thanks --_000_C8EBAA77B213jeffreydamickneustarbiz_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: keys_cached percent? Sure - so percents aren’t supported anymore in 0.7.x, which is = fine, I just wanted to clarify.

thanks


On 10/25/10 9:31 PM, "Aaron Morton" <aaron@thelastpickle.com> wrote:

To cache 100% set the value to 1. The comme= nts in the yaml below do explicitly say this, but its discussed here http://wiki.apache.org/cassandra/StorageConfiguration?highligh= t=3D(keys)|(cached)

Aaron


On 26 Oct, 2010,at 02:02 PM, "Damick, Jeffrey" <Jeffrey.Damick= @neustarbiz> wrote:

I tried a few variations, but when it set i= t to: 100%  or “100%” or similar I get:

ERROR 19:37:31,898 Fatal error: null; Can't construct a java object for tag= :yaml.org,2002:org.apache.cassandra.config.Config; exception=3DCannot creat= e property=3Dkeyspaces for JavaBean=3Dorg.apache.cassandra.config.Config@32= 955cd5; Cannot create property=3Dcolumn_families for JavaBean=3Dorg.apache.= cassandra.config.RawKeyspace@31b446d1; Cannot create property=3Dkeys_cached= for JavaBean=3Dorg.apache.cassandra.config.RawColumnFamily@c68c26c; For in= put string: "100%"
Bad configuration; unable to start server

It looks like if it’s yaml it doesn’t pass through the FBUtils.= parseDoubleOrPercent(), and since the bean has a double the yaml deserializ= er is blowing up... Just a guess..

-jeff


On 10/25/10 3:51 PM, "Aaron Morton" <aaron@thelastpickle.com> wrote:

It should do, this is the comment from the = yaml

#     - keys_cached: specifies the number of keys per s= stable whose
#        locations we keep in memory in = "mostly LRU" order.  (JUST the key
#        locations, NOT any column value= s.) Specify a fraction (value less
#        than 1) or an absolute number o= f keys to cache.  Defaults to 200000
#        keys.

Is it not working?
Aaron


On 26 Oct, 2010,at 08:45 AM, "Damick, Jeffrey" <Jeffrey.Damick@neustar.biz> wrote:

Does 0.7 not support percentages in the key= s_cached (in the yaml config)?  (I’m on 07.0b2 so maybe it has b= een fixed?)

thanks


--_000_C8EBAA77B213jeffreydamickneustarbiz_--