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 387BC10387 for ; Mon, 2 Dec 2013 20:24:53 +0000 (UTC) Received: (qmail 25588 invoked by uid 500); 2 Dec 2013 20:24:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 25562 invoked by uid 500); 2 Dec 2013 20:24:50 -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 25553 invoked by uid 99); 2 Dec 2013 20:24:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 20:24:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of charlieandrews.cwa@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yh0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 20:24:45 +0000 Received: by mail-yh0-f47.google.com with SMTP id 29so9212653yhl.6 for ; Mon, 02 Dec 2013 12:24:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=5xANQTimcKofNsCuQ05l7qCL+91R1urPwUCOe9b6w14=; b=uTtimGA9gqr9Pj6lSrpoZ60alB7Nwy6jcpzqx6s3IiUOFE27DH6Ae6ZakwtQ4f9oM5 o1j33BfmgrVXRRTtgJVXs9gWw/eWoAA9mZuxCawW3iVe5c56ikuNAs40ScZh6FRRuFZj mNYe9SqNE/gIolsrSVS4FUxSGbz3NkTqHmrFId9fUP9LjjIfWKfkRbhgmxDmL7R/+kQf l102i3+xWPQDwz8Bn3IjT5QK1C0fzr0k6ZB5QAX4RhxgXd2AqWTpiyZ10wN+V3ahJfYj oKclffDtv7wg0/CcMI7UYPyJ/i6V3JE8upqtEoYaDHd+mGtAJBYIZUvhjIVRyIwg1wSq FdEA== X-Received: by 10.236.83.238 with SMTP id q74mr19960694yhe.9.1386015863982; Mon, 02 Dec 2013 12:24:23 -0800 (PST) Received: from [192.168.1.15] (cpe-098-026-012-153.nc.res.rr.com. [98.26.12.153]) by mx.google.com with ESMTPSA id v96sm128017170yhp.3.2013.12.02.12.24.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Dec 2013 12:24:23 -0800 (PST) From: Charlie Andrews Content-Type: multipart/alternative; boundary="Apple-Mail=_505CB4FF-7CAA-4B01-BAF0-DC4BB9A14ABA" Message-Id: <127DCC03-4C33-43AC-9203-0ABDDA86EF2C@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: Table Creation Error Date: Mon, 2 Dec 2013 15:24:16 -0500 References: <6A189B4A-D3FB-4BA9-9638-A976153C3142@gmail.com> <78157CBC-9FD8-4FD5-B70F-6C591365CC47@gmail.com> To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_505CB4FF-7CAA-4B01-BAF0-DC4BB9A14ABA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Just out of curiosity, what do you think occurred to cause this problem? = I thought it was quite strange that I didn=92t get a useable error since = my experience with this project has always been pretty helpful errors. Thanks, Charlie On Dec 2, 2013, at 3:20 PM, Robert Coli wrote: > On Mon, Dec 2, 2013 at 12:14 PM, Charlie Andrews = wrote: > Maybe a stupid question, but doesn=92t dropping a keyspace drop all = data? Or is the keyspace schema separate from the data it describes? >=20 > Lol, sorry, yes. You will have to restore the data from the = automatically created snapshot. >=20 > 1) echo "DESCRIBE KEYSPACE ;" | cqlsh > = keyspace_name.schema.cqlsh > 2) DROP KEYSPACE ; > 3) restore keyspace's data from the snapshots created automatically = when you DROP > 4) use the contents of keyspace_name.schema.cqlsh to re-create your = schema > 5) rolling restart of all nodes (or use "nodetool refresh") > =20 > =3DRob >=20 --Apple-Mail=_505CB4FF-7CAA-4B01-BAF0-DC4BB9A14ABA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Just = out of curiosity, what do you think occurred to cause this problem? I = thought it was quite strange that I didn=92t get a useable error since = my experience with this project has always been pretty helpful = errors.

Thanks,
Charlie

On Dec 2, 2013, at 3:20 PM, Robert Coli <rcoli@eventbrite.com> = wrote:

On Mon, Dec 2, 2013 at 12:14 PM, Charlie = Andrews <charlieandrews.cwa@gmail.com> = wrote:
Maybe a stupid question, but doesn=92t dropping a keyspace drop all = data? Or is the keyspace schema separate from the data it = describes?

Lol, sorry, yes. You = will have to restore the data from the automatically created = snapshot.

1) = echo "DESCRIBE KEYSPACE <keyspace_name>;" | cqlsh > = keyspace_name.schema.cqlsh
2) DROP KEYSPACE <keyspace_name>;
3) = restore keyspace's data from the snapshots created automatically when = you DROP
4) use the contents of keyspace_name.schema.cqlsh to re-create your = schema
5) rolling restart of all nodes (or use "nodetool = refresh")
 
=3DRob


= --Apple-Mail=_505CB4FF-7CAA-4B01-BAF0-DC4BB9A14ABA--