在同一台机器上运行多个 cassandra 节点(一个集群)? [英] Run multiple cassandra nodes (a cluster) from the same machine?

查看:34
本文介绍了在同一台机器上运行多个 cassandra 节点(一个集群)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从我的 Ubuntu 运行 3 个 cassandra 节点(实际上是一个集群)?我不想创建 3 个 VMWare/VirtualBox 实例,而是将每个 cassandra 节点配置为侦听不同的端口.安装一个 cassandra 可以吗?

How can I run 3 cassandra nodes (actually a cluster) from my Ubuntu? I don't want to create 3 instances of VMWare/VirtualBox but instead, configure each cassandra node to listen to a different port. Is that possible with one cassandra installation?

我想到的一个解决方案是安装 3 个本地 cassandra 并独立配置每个 cassandra.yaml,但实际上我更愿意通过我安装的 cassandra 配置文件来实现.

A solution that came to my mind is to have 3 local cassandra installation and configure each cassandra.yaml independently but actually I would prefer to have achieve that by my installed cassandra configuration files.

显然,我只需要这样的配置用于测试目的.

I need such configuration only for testing purposes, obviously.

推荐答案

在 github 上查看这个 Cassandra Cluster Manager https://github.com/pcmanus/ccm

Check this Cassandra Cluster Manager on github https://github.com/pcmanus/ccm

(链接是配置多个 Cassandra 以侦听不同本地主机接口 127.0.0.1、127.0.0.2、127.0.0.3 的脚本)

(link is to script that configures multiple Cassandras to listen on different localhost interfaces 127.0.0.1, 127.0.0.2, 127.0.0.3)

这篇关于在同一台机器上运行多个 cassandra 节点(一个集群)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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