2

我使用 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
4

1 回答 1

2

可能有几个原因:

  • 你有已经在运行的 Cassandra 进程 - 检查,ps -aux|grep -i cassandra你没有其他 Cassandra 进程已经在 localhost 上运行
  • 您尚未创建CCM 文档本文中描述的其他接口- 创建必要的接口/别名(这取决于您的操作系统)。
于 2019-05-15T11:58:13.517 回答