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 91345D8AA for ; Sat, 29 Dec 2012 21:47:51 +0000 (UTC) Received: (qmail 43767 invoked by uid 500); 29 Dec 2012 21:47:49 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 43744 invoked by uid 500); 29 Dec 2012 21:47:49 -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 43736 invoked by uid 99); 29 Dec 2012 21:47:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 21:47:49 +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 aventurella@gmail.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 21:47:42 +0000 Received: by mail-oa0-f50.google.com with SMTP id n16so10620477oag.23 for ; Sat, 29 Dec 2012 13:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Azzy/kadqtAN8gIvsFsfD5jAK2Xhht/PE4P/Nda7hIY=; b=Hwz+rnyqlLCmmStKHko4Hh8r6te926OVVD6ILDUbxK15UAlxWwWJjco0SF97qQQdSx 4sHWx8kTmCDiL1n498aXunLgshVkoGb8cyTVwO6nItUXjmCDeBBNQAeMFd9E7GmgM+JR lDMHrxA+oVOVG0ELoisrWuBF6kpab8Qdh2KkhE2ZMtC1emMSsqb3fjnHHKohFdXvNpy0 fDrOXReH/zkNKajNsP6EGTf7rn16ypnv+vsDNVy3z5FxLKA4NOgh8rFCJRP8rzqtK/Ym 5XVWA1bXchc1ZtP6v6N8S24NS750q6aaOvUkpDE7/EY69IdwljnWM0N8Uoiu2IGfrE6x PDUQ== MIME-Version: 1.0 Received: by 10.60.7.199 with SMTP id l7mr18821489oea.136.1356817642012; Sat, 29 Dec 2012 13:47:22 -0800 (PST) Received: by 10.76.34.40 with HTTP; Sat, 29 Dec 2012 13:47:21 -0800 (PST) In-Reply-To: References: Date: Sat, 29 Dec 2012 13:47:21 -0800 Message-ID: Subject: Re: Create Keyspace failing in 1.2rc2 with syntax error? From: Adam Venturella To: "user@cassandra.apache.org" Content-Type: multipart/alternative; boundary=e89a8fb1ed4c93bed204d204b956 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1ed4c93bed204d204b956 Content-Type: text/plain; charset=ISO-8859-1 Nevermind... help CREATE_KEYSPACE; works wonders.. CREATE KEYSPACE WITH replication = {'class':'SimpleStrategy', 'replication_factor':3}; =) On Sat, Dec 29, 2012 at 1:27 PM, Adam Venturella wrote: > When I create a keyspace with a SimpleStrategy as outlined here: > https://cassandra.apache.org/doc/cql3/CQL.html#createKeyspaceStmt > > > CREATE KEYSPACE Test > WITH strategy_class = SimpleStrategy > AND strategy_options:replication_factor = 1; > > > I receive the following error: > > Bad Request: line 3:20 mismatched input ':' expecting '=' > > > I'm running the following cqlsh: > > > Connected to Test Cluster at localhost:9160. > > [cqlsh 2.3.0 | Cassandra 1.2.0~rc2 | CQL spec 3.0.0 | Thrift protocol 19.35.0] > > > > --e89a8fb1ed4c93bed204d204b956 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Nevermind...=A0

help CREATE_KEYSPACE; w= orks wonders..

CREATE KEYSPACE <ksna= me>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 WITH replication =3D {'= ;class':'SimpleStrategy', 'replication_factor':3};

=3D)




On Sat, Dec 29, = 2012 at 1:27 PM, Adam Venturella <aventurella@gmail.com>= wrote:

When I create a keyspace with a SimpleStrategy as outlined here: <= a href=3D"https://cassandra.apache.org/doc/cql3/CQL.html#createKeyspaceStmt= " target=3D"_blank">https://cassandra.apache.org/doc/cql3/CQL.html#createKe= yspaceStmt


CREATE KEYSPACE Test
           WITH strategy_class =3D SimpleStrategy
            AND strategy_options:replication_factor =3D 1;

I receive the following error:
Bad Request: line 3:20 mismat=
ched input ':' expecting '=3D'

I'm running the following cqlsh:

Connected to Test Clu=
ster at localhost:9160.
[cqlsh 2.3.0 |=
 Cassandra 1.2.0~rc2 | CQL spec 3.0.0 | Thrift protocol 19.35.0]

<= /span>


--e89a8fb1ed4c93bed204d204b956--