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 5F601592D for ; Tue, 10 May 2011 21:17:49 +0000 (UTC) Received: (qmail 88060 invoked by uid 500); 10 May 2011 21:17:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 88032 invoked by uid 500); 10 May 2011 21:17:47 -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 88024 invoked by uid 99); 10 May 2011 21:17:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 21:17:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of psadhu@netflix.com designates 208.75.77.162 as permitted sender) Received: from [208.75.77.162] (HELO exout101.netflix.com) (208.75.77.162) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 21:17:40 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=s1024;d=netflix.com; h=from:to:date:subject:message-id:in-reply-to:content-type:mime-version; bh=0jpz+uSiAzzHKa1Xit8+VQ2wMek=; b=Ij4ZxYs6yrHKsjdWoenQgWMlTG4Pi7jUq+zgheBvFNqnwtuq2Arqt/5knJJk+/XkX2ClYNom 1VePfIXTa00d5Gdvhq0oVrfwE7+SbwxMqrU1fb+1nREhzVcLUZ/xIJ4D+DjFbr3xr9q7EDRz n2GRnHluz4mS+qw9j68aPsx/yNU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024;d=netflix.com; h=from:to:date:subject:message-id:in-reply-to:content-type:mime-version; b=OUyGp9EwWzOTEVeHkpEBGxTKuOvXnWzDyCZtNOCU236i1PvRu+udw0QH0pCyPrnKkqQxrI3D BmTaAUF1z/6oYwLxOJCHT8yD40TnUdxNk1Q65cZxRBk0e6hDQn2rZsaSdo6L8MI+JRdYMbeI ayy7BMk5HTA7hvevIEfbz5bpES4= Received: from EXCHFE101.netflix.com (10.64.32.101) by exout101.netflix.com (10.64.240.73) with Microsoft SMTP Server (TLS) id 8.3.137.0; Tue, 10 May 2011 14:17:39 -0700 Received: from EXCHMBX102.netflix.com ([fe80::e98a:9f90:8b2d:b28e]) by ExchFE101.netflix.com ([fe80::6861:6a26:831f:e8c9%14]) with mapi; Tue, 10 May 2011 14:17:19 -0700 From: Praveen Sadhu To: "user@cassandra.apache.org" Date: Tue, 10 May 2011 14:17:17 -0700 Subject: Re: How to load schema non-programmatically? loadSchemaFromYAML doesn't work Thread-Topic: How to load schema non-programmatically? loadSchemaFromYAML doesn't work Thread-Index: AcwPV6TlIyhD2t+zT3GKsU6SQh4reg== 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.0.101115 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 The export dumps to the console. The import only works on fresh system and imports from cassandra.yaml file. Praveen On 5/10/11 1:59 PM, "Jim the Standing Bear" wrote: >Hi Anurag, > >That was what I used, but it didn't seem to work. > >On Tue, May 10, 2011 at 4:54 PM, Anurag Gujral >wrote: >> Use jconsole give your hostname:port (hostname,port on which cassandra >>is >> running) >> then from the MBean select storage service . On the storage service >>MBean >> execute operation loadSchemaFromXML(); >> >> You may have to change the hostname in the your cassandra jmx settings >> >> thanks >> A >> >> On Tue, May 10, 2011 at 1:16 PM, Jim the Standing Bear >> wrote: >>> >>> Hi, >>> >>> I am just learning Cassandra at the moment. The O'Reilly book on >>> Cassandra says that I should be able to add the keyspace schema >>> definition to cassandra.yaml and then invoke loadSchemaFromYAML() to >>> load it. I tried that but it didn't work (and I do realize this book >>> is a bit obsolete now). Another post that I read says keyspace >>> definition in cassandra.yaml is ignored because cassandra now supports >>> programmatically loading schema. However, I still would like to know >>> if there is a way to load it non-programmatically. Thanks. >>> >>> -- Jim >> >> > > > >--=20 >-------------------------------------- >Standing Bear Has Spoken >-------------------------------------- >