简体   繁体   中英

Differences between commands of Cassandra CLI and Cassandra CQL

I am trying to run the following wso2cep sample. 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. So we have to use cassandra CQL instead.

How to run the following commands which targeted cassandra-cli, within CQL?

 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客户端

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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