在cqlsh 2中是否有明确等效的“show keyspaces”? [英] Is there a clear equivalent of 'show keyspaces' in cqlsh 2?

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

问题描述

什么cqlsh命令可以用来快速查看集群中的键空间? cqlsh不提供显示键空间 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 spec 2.0.0,Thrift protocol 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中是否有明确等效的“show keyspaces”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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