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 DCDD78CF6 for ; Thu, 1 Sep 2011 18:08:02 +0000 (UTC) Received: (qmail 70035 invoked by uid 500); 1 Sep 2011 18:08:00 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 69903 invoked by uid 500); 1 Sep 2011 18:08:00 -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 69895 invoked by uid 99); 1 Sep 2011 18:07:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 18:07:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.215.44 as permitted sender) Received: from [209.85.215.44] (HELO mail-ew0-f44.google.com) (209.85.215.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 18:07:55 +0000 Received: by ewy19 with SMTP id 19so1228188ewy.31 for ; Thu, 01 Sep 2011 11:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=15O+ft8T+sWDOahwoo/AnSSNZsEJObQffkRfizXOkC0=; b=USPKqFcZlpuLlKqJS/vy3NFXXw2FicPH4Bt3qSBPLN9tSnOyK+XvExZlsBwCMYOfb9 gBggu5PGI3QRL9RQFNNFdl5p2CL66IoqCu+Q0oMG0BKrq6z09uZBoTtHL4tUU/fNumn+ sak+69aWTFprI3xTjAkprrJCCgRRHO5DzKt9U= Received: by 10.213.110.2 with SMTP id l2mr106072ebp.119.1314900454179; Thu, 01 Sep 2011 11:07:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.108.83 with HTTP; Thu, 1 Sep 2011 11:07:14 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 1 Sep 2011 13:07:14 -0500 Message-ID: Subject: Re: cassandra-cli describe / dump command To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable yes, cli "show schema" in 0.8.4+ On Thu, Sep 1, 2011 at 12:52 PM, J T wrote: > Hi, > > I'm probably being blind .. but I can't see any way to dump the schema > definition (and the data in it for that matter)=A0 of a cluster in order = to > capture the current schema in a script file for subsequent replaying in t= o a > different environment. > > For example, say I have a DEV env and wanted to create a script containin= g > the cli commands to create that schema in a UAT env. > > In my case, I have a cassandra schema I've been tweaking / upgrading over > the last 2 years and I can't see any easy way to capture the schema > definition. > > Is such a thing on the cards for cassandra-cli ? > > JT > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com