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 576116028 for ; Fri, 3 Jun 2011 16:17:38 +0000 (UTC) Received: (qmail 65215 invoked by uid 500); 3 Jun 2011 16:17:36 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 65190 invoked by uid 500); 3 Jun 2011 16:17:36 -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 65181 invoked by uid 99); 3 Jun 2011 16:17:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 16:17:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremy.hanna1234@gmail.com designates 74.125.83.44 as permitted sender) Received: from [74.125.83.44] (HELO mail-gw0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 16:17:31 +0000 Received: by gwb20 with SMTP id 20so1055454gwb.31 for ; Fri, 03 Jun 2011 09:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=tth2fcEJodOlwBxXVz6immde0kBwkXg1mgc4ex5LeCA=; b=WstUpVdhEqamH2bc172PoqNFMMLLC5tof/8LPTWONHwendHCYAyt7NDT4k2moJSdyX gEvEYyUcug/WDUnuk1MOGlLBJBb3/UfuVfqHzOMNLiK2llyyzMvTZa0g6yCEfLiulcoB hSg1iZ93S5mMQnk7VOHaF4WkmiExCKb+PbGt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=BfbFVmZ3jNXqtN9h8yLrofWfabEZf5pi8q4DXjZx8SX1+Swe6cLifc/F4YQuXTrLhK h3XUuwpIfCaVxlFMNOZbByFMTsnMB99dImj4NvGHA68g0d3BypBM0WRIdzEC5C/WGKYg 1S+LGht55M3ytFanrvKN8Ad72u6r36J1lBOtA= Received: by 10.236.156.234 with SMTP id m70mr3069356yhk.204.1307117829999; Fri, 03 Jun 2011 09:17:09 -0700 (PDT) Received: from [192.168.1.68] (108-90-0-32.lightspeed.austtx.sbcglobal.net [108.90.0.32]) by mx.google.com with ESMTPS id f65sm1405510yhn.53.2011.06.03.09.17.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Jun 2011 09:17:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Loading Keyspace from YAML in 0.8 From: Jeremy Hanna In-Reply-To: Date: Fri, 3 Jun 2011 11:17:06 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <152DDA3B-CAA9-41AC-AD0F-27DB64E8EFE6@gmail.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) In 0.8 (and 0.7) you can have a script that you create that you can run = on the CLI that creates your schema. We create something like a ddl = file and run it on a new cluster. You just pass it to the cli with -f = . On Jun 3, 2011, at 11:14 AM, Paul Loy wrote: > We embed cassandra in our app. When we first load a cluster, we = specify one node in the cluster as the seed node. This node installs the = schema using StorageService.instance.loadKeyspacesFromYAML(). This call = has disappeared in 0.8. >=20 > How can we do the same thing in Cassandra 0.8? >=20 > Thanks, >=20 > --=20 > --------------------------------------------- > Paul Loy > paul@keteracel.com > http://uk.linkedin.com/in/paulloy