CQL:ConfigurationException:键空间find_zone_uat不存在

时间:2019-06-24 08:19:12

标签: cassandra

create table refined_zone_uat.unprocessed_contact_records_fraudring (
trade_acc_number text,
contact_sf_id text ,
email text ,
ip_address text ,
mobile_phone text ,
first_name text ,
last_name text ,
acc_sf_id text ,
device_id text,
street text ,
post_code text ,
added_date timestamp ,
org_code text,
PRIMARY KEY (contact_sf_id, added_date)
);

SHowing错误:“ ConfigurationException: Keyspace refined_zone_uat doesn't exist

但是键空间:“ unprocessed_contact_records_fraudring”可用。

1 个答案:

答案 0 :(得分:1)

这是创建表语法Faisal

https://docs.datastax.com/en/archived/cql/3.3/cql/cql_using/useCreateTable.html

看起来像语句中的键空间和表是相反的。应该是

CREATE TABLE {keyspace}.{table_name} (....);