【发布时间】:2017-09-01 11:55:33
【问题描述】:
我在 Ubuntu 16.04 上有 cqlsh,这是我的 cqlsh 版本:
[cqlsh 5.0.1 | Cassandra 3.10 | CQL spec 3.4.4 | Native protocol v4]
我无法创建键空间,我得到的错误是这个:
'ascii' codec can't encode character u'\xe9' in position 218: ordinal not in range(128)
我怎样才能让它工作?
我尝试使用此命令登录:
cqlsh 127.0.0.1 9042 -u cassandra -p cassandra --cqlversion="3.4.4" --encoding utf-8
但是没有用。
创建我使用的键空间的命令:
CREATE KEYSPACE Excelsior
WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};
感谢您的任何回答。
【问题讨论】:
-
你是如何创建密钥空间的?
-
创建 KEYSPACE Excelsior WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};