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