简体   繁体   English

Cassandra CLI和Cassandra CQL命令之间的差异

[英]Differences between commands of Cassandra CLI and Cassandra CQL

I am trying to run the following wso2cep sample. 我正在尝试运行以下wso2cep示例。 https://docs.wso2.com/display/CEP400/Sample+0067+-+Publishing+Map+Events+via+Cassandra+Transport https://docs.wso2.com/display/CEP400/Sample+0067+-+Publishing+Map+Events+via+Cassandra+Transport

But in the latest cassandra releases we cannot find the cassandra-cli. 但是在最新的cassandra版本中,我们找不到cassandra-cli。 So we have to use cassandra CQL instead. 因此,我们必须改用cassandra CQL。

How to run the following commands which targeted cassandra-cli, within CQL? 如何在CQL中运行以下针对cassandra-cli的命令?

 Create a keyspace: create keyspace CEP_KS;

 Use keyspace: use CEP_KS admin 'admin';

 Create column family: create column family CF_Transactions with comparator = 'UTF8Type' and caching='ALL';

Thanks.. 谢谢..

cassandra-cli是使用Thrift协议的旧客户端,现在已弃用,您应使用使用新CQL二进制协议的cqlsh客户端

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM