如何知道我正在运行哪个版本的 Cassandra?

发布于 2024-09-16 18:34:27 字数 230 浏览 10 评论 0原文

我刚刚按照下面链接中的说明在 EC2 上启动了一台运行 Cassandra 的机器,但我不知道它是什么版本。我该如何解决这个问题?我知道我错过了一些非常简单的东西,只是不知道去哪里寻找。

http://wiki.apache.org/cassandra/CloudConfig

I just spun up a machine on EC2 running Cassandra following the instructions in the link below, but I have no idea what version it is. How do I figure this out? I know I'm missing something incredibly simple, just don't know where to look.

http://wiki.apache.org/cassandra/CloudConfig

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

扛刀软妹 2024-09-23 18:34:27

使用nodetools可能会更容易

./nodetool -h localhost version

It might be easier to use nodetools

./nodetool -h localhost version
旧梦荧光笔 2024-09-23 18:34:27

您可以使用cqlsh

$ cqlsh

Connected to Test Cluster at localhost:9160.
[cqlsh 3.1.8 | Cassandra 1.2.18 | CQL spec 3.0.5 | Thrift protocol 19.36.2]
Use HELP for help.

You could use cqlsh.

$ cqlsh

Connected to Test Cluster at localhost:9160.
[cqlsh 3.1.8 | Cassandra 1.2.18 | CQL spec 3.0.5 | Thrift protocol 19.36.2]
Use HELP for help.
初见终念 2024-09-23 18:34:27

还可以在 CQL 中使用“SHOW VERSION”命令:

cqlsh:mydb> SHOW VERSION ;
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]

May also use "SHOW VERSION" command in CQL:

cqlsh:mydb> SHOW VERSION ;
[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]
念三年u 2024-09-23 18:34:27

查看您列出的说明后,您似乎使用的是 Debian(基于)系统。特别是,在“Cassandra基本设置”部分,它说:

Step 3. Install the Debian package for Cassandra

% apt-get update % apt-get install cassandra

At this point, Cassandra will be installed and running. However, it's not configured for a multi-node cluster. So we need to continue.

如果您按照此步骤安装了Cassandra,则可以简单地使用Debian的包管理工具来查询您安装的包:

% dpkg -s cassandra

After reviewing the instructions you listed, it looks like you're on a Debian(-based) system. In particular, in the "Cassandra Basic Setup" section, it says:

Step 3. Install the Debian package for Cassandra

% apt-get update % apt-get install cassandra

At this point, Cassandra will be installed and running. However, it's not configured for a multi-node cluster. So we need to continue.

If you followed this step to install Cassandra, you can simply use Debian's package management tool to inquire about the package you installed:

% dpkg -s cassandra
鱼窥荷 2024-09-23 18:34:27

您可以查询您的包管理器:

dpkg -l cassandra

yum info cassandra

You could query your package manager:

dpkg -l cassandra

or

yum info cassandra
兔小萌 2024-09-23 18:34:27

转到 Cqlsh 命令提示符并输入 show version 以获取您正在使用的 cassandra 版本

Go to Cqlsh command prompt and type show version to get the version of cassandra you are using

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文