You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Pierre Chalamet <pi...@chalamet.net> on 2012/11/11 18:10:51 UTC

failed to create keyspace 1.2-beta2 bin protocol

Hi all,

 

I'm trying to create a keyspace through the CQL Binary Protocol but lamely
failed at doing this simple task with 1.2b2/cql3.

 

Various command tried:

 

DEBUG 18:08:23,240 Received: OPTIONS

DEBUG 18:08:23,240 Responding: SUPPORTED {CQL_VERSION=[3.0.0],
COMPRESSION=[snappy]}

DEBUG 18:08:23,254 Received: STARTUP {CQL_VERSION=3.0.0}

DEBUG 18:08:23,254 Responding: READY

DEBUG 18:08:23,269 Received: QUERY CREATE KEYSPACE Excelsior WITH
strategy_class='SimpleStrategy' AND strategy_options:replication_factor = 1

DEBUG 18:08:23,269 request complete

DEBUG 18:08:23,270 Responding: ERROR SYNTAX_ERROR: line 1:83 mismatched
input ':' expecting '='

DEBUG 18:08:23,303 Received: QUERY CREATE KEYSPACE Excelsior WITH
strategy_class='SimpleStrategy' AND strategy_options={replication_factor:1}

DEBUG 18:08:23,303 request complete

DEBUG 18:08:23,303 Responding: ERROR SYNTAX_ERROR: line 1:85 mismatched
input 'replication_factor' expecting set null

DEBUG 18:08:23,330 Received: QUERY CREATE KEYSPACE Excelsior WITH
placement_strategy='SimpleStrategy' AND strategy_options:replication_factor
= 1

DEBUG 18:08:23,330 request complete

DEBUG 18:08:23,330 Responding: ERROR SYNTAX_ERROR: line 1:87 mismatched
input ':' expecting '='

DEBUG 18:08:23,357 Received: QUERY CREATE KEYSPACE Excelsior WITH
placement_strategy='SimpleStrategy' AND
strategy_options={replication_factor:1}

DEBUG 18:08:23,357 request complete

DEBUG 18:08:23,357 Responding: ERROR SYNTAX_ERROR: line 1:89 mismatched
input 'replication_factor' expecting set null

 

But nothing seems to work as expected.

Could someone point me how to create a keyspace under CQL 3 using binary
protocol (don't know if binary protocol changes things on this anyway) ?

 

Thanks a lot,

- Pierre

 


RE: failed to create keyspace 1.2-beta2 bin protocol

Posted by Pierre Chalamet <pi...@chalamet.net>.
Forget about it, should have read
https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile instead
of source snapshot (not merged in 1.2-b2 snapshot ?)

 

- Pierre

 

From: Pierre Chalamet [mailto:pierre@chalamet.net] 
Sent: Sunday, November 11, 2012 6:11 PM
To: user@cassandra.apache.org
Subject: failed to create keyspace 1.2-beta2 bin protocol

 

Hi all,

 

I'm trying to create a keyspace through the CQL Binary Protocol but lamely
failed at doing this simple task with 1.2b2/cql3.

 

Various command tried:

 

DEBUG 18:08:23,240 Received: OPTIONS

DEBUG 18:08:23,240 Responding: SUPPORTED {CQL_VERSION=[3.0.0],
COMPRESSION=[snappy]}

DEBUG 18:08:23,254 Received: STARTUP {CQL_VERSION=3.0.0}

DEBUG 18:08:23,254 Responding: READY

DEBUG 18:08:23,269 Received: QUERY CREATE KEYSPACE Excelsior WITH
strategy_class='SimpleStrategy' AND strategy_options:replication_factor = 1

DEBUG 18:08:23,269 request complete

DEBUG 18:08:23,270 Responding: ERROR SYNTAX_ERROR: line 1:83 mismatched
input ':' expecting '='

DEBUG 18:08:23,303 Received: QUERY CREATE KEYSPACE Excelsior WITH
strategy_class='SimpleStrategy' AND strategy_options={replication_factor:1}

DEBUG 18:08:23,303 request complete

DEBUG 18:08:23,303 Responding: ERROR SYNTAX_ERROR: line 1:85 mismatched
input 'replication_factor' expecting set null

DEBUG 18:08:23,330 Received: QUERY CREATE KEYSPACE Excelsior WITH
placement_strategy='SimpleStrategy' AND strategy_options:replication_factor
= 1

DEBUG 18:08:23,330 request complete

DEBUG 18:08:23,330 Responding: ERROR SYNTAX_ERROR: line 1:87 mismatched
input ':' expecting '='

DEBUG 18:08:23,357 Received: QUERY CREATE KEYSPACE Excelsior WITH
placement_strategy='SimpleStrategy' AND
strategy_options={replication_factor:1}

DEBUG 18:08:23,357 request complete

DEBUG 18:08:23,357 Responding: ERROR SYNTAX_ERROR: line 1:89 mismatched
input 'replication_factor' expecting set null

 

But nothing seems to work as expected.

Could someone point me how to create a keyspace under CQL 3 using binary
protocol (don't know if binary protocol changes things on this anyway) ?

 

Thanks a lot,

- Pierre