cqlsh 2 中是否有明确的“显示键空间"等价物? [英] Is there a clear equivalent of 'show keyspaces' in cqlsh 2?

查看:19
本文介绍了cqlsh 2 中是否有明确的“显示键空间"等价物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用什么 cqlsh 命令来快速查看集群中的键空间?cqlsh 不提供 show keyspaces 并且 describe cluster 没有我想要的那么简洁.

What cqlsh command can I use to quickly see the keyspaces in a cluster? cqlsh does not provide show keyspaces and describe cluster isn't as concise as I want.


我正在使用以下规范:


I'm working using the following specifications:

cqlsh 2.2.0、Cassandra 1.1.10、CQL 规范 2.0.0、Thrift 协议 19.33.0

cqlsh 2.2.0, Cassandra 1.1.10, CQL spec 2.0.0, Thrift protocol 19.33.0

推荐答案

很简单.只需在您的 cqlsh shell 中输入此命令并享受

Very simple. Just enter this command in your cqlsh shell and enjoy

 select * from system.schema_keyspaces;

在 C*3.x 中,我们可以简单地使用

In C*3.x, we can simply use

 describe keyspaces

这篇关于cqlsh 2 中是否有明确的“显示键空间"等价物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆