【发布时间】:2016-04-27 16:53:20
【问题描述】:
Drop keyspace if exists actionable;
CREATE KEYSPACE if not exists actionable WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
我收到此错误 cassandra.protocol.SyntaxException: :0 missing EOF at 'CREATE' (... if exists "actionable";
找不到太多关于它的文档。但是如果我单独执行每个语句,它就可以工作。是不是脚本文件有问题?
【问题讨论】:
-
您提到“如果我单独执行每条语句,它就会起作用”;如果不是一一执行,您是如何执行这些语句的?
-
从 .cql 文件运行