cassandra - Inet地址127.0.0.1 :9042 is not available when use ccm start

标签 cassandra ccm

我使用 CCM 在一台计算机上创建一个三节点 Cassandra 集群。当我在 Linux 终端使用 ccm start 时,我看到以下错误:

ccmlib.common.UnavailableSocketError: Inet address 127.0.0.1:9042 is not available: 
[Errno 98] Address already in use; a cluster may already be running or you may
need to add the loopback alias

最佳答案

可能有以下几个原因:

  • 您的 Cassandra 进程已在运行 - 使用 ps -aux|grep -i cassandra 检查您是否在本地主机上已运行其他 Cassandra 进程
  • 您尚未按照 CCM documentation 中的描述创建其他接口(interface)或this article - 创建必要的接口(interface)/别名(这取决于您的操作系统)。

关于cassandra - Inet地址127.0.0.1 :9042 is not available when use ccm start,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56146876/

相关文章:

Cassandra 如何在表中添加聚类键?

mysql - 我如何在 Cassandra 中将此 MySQL 表建模为 super 列族?

nosql - Cassandra 更新专栏

Cassandra 1.1 : querying multiple row keys, 但不是范围

linux - Thingsboard:数据库更改