Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Colin Taylor
Its ugly for integration testing ... Socket socket = new Socket("127.0.0.1", 9170); final OutputStream cli = socket.getOutputStream(); log.info("loading schema via cli"); new PrintWriter(cli).print(new String(readFully(new FileInputStream("cassandra-schema"; cli

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
edlinuxg...@gmail.com] > *Sent:* Friday, June 03, 2011 12:00 PM > > *To:* user@cassandra.apache.org > *Subject:* Re: Loading Keyspace from YAML in 0.8 > > > > On Fri, Jun 3, 2011 at 12:35 PM, Paul Loy wrote: > >> ugh! >> >> On Fri, Jun 3, 2011 at 5:19 PM,

RE: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Jeremiah Jordan
Or at least someone should write a script which will take a YAML config and turn it into a CLI script. From: Edward Capriolo [mailto:edlinuxg...@gmail.com] Sent: Friday, June 03, 2011 12:00 PM To: user@cassandra.apache.org Subject: Re: Loading Keyspace from YAML

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Edward Capriolo
On Fri, Jun 3, 2011 at 12:35 PM, Paul Loy wrote: > ugh! > > On Fri, Jun 3, 2011 at 5:19 PM, Edward Capriolo wrote: > >> >> >> On Fri, Jun 3, 2011 at 12:14 PM, 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 no

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Robert Jackson
age - From: "Jeremy Hanna" To: user@cassandra.apache.org Sent: Friday, June 3, 2011 12:17:06 PM Subject: Re: Loading Keyspace from YAML in 0.8 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 dd

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
ugh! On Fri, Jun 3, 2011 at 5:19 PM, Edward Capriolo wrote: > > > On Fri, Jun 3, 2011 at 12:14 PM, 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.insta

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Edward Capriolo
On Fri, Jun 3, 2011 at 12:14 PM, 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. > > How

Re: Loading Keyspace from YAML in 0.8

2011-06-03 Thread Jeremy Hanna
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. Whe

Loading Keyspace from YAML in 0.8

2011-06-03 Thread Paul Loy
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. How can we do the same thing in Cassandra 0.8? Thanks, --