Cassandra no longer recognizes the creative command of Keyspace

0

I try to create a keyspace about Cassandra with the help of the tuttorialspoint tutorial but there is a problem: When I make the command to create a Keyspace:

;CREATE KEYSPACE k1 WITH
    strategy_class = 'SimpleStrategy'
    AND trategy_otpions:replication_factor = '1';
    ...

O

cqlsh> CREATE KEYSPACE k1 WITH
   ... replication = {'class': 'strategy_class = 'SimpleStrategy'
   ... AND trategy_otpions:replication_factor = '1';
   ... 

When I touch the entry, it gives nothing, only the '...'

    
asked by ThePassenger 27.11.2017 в 19:58
source

1 answer

0

The problem is that there is a syntax error. You can see that you have a quote before strategy_class that has no counterpart.

The correct sentence would be:

CREATE KEYSPACE k1
  WITH REPLICATION = { 
   'class' : 'SimpleStrategy', 
   'replication_factor' : 1 
  };

For more concrete examples you can refer to the official documentation here .

    
answered by 04.01.2018 в 01:35