Inet address 127.0.0.1:9042 is not available when use ccm start

322 Views Asked by At

I use CCM to create a three node Cassandra cluster on a single machine. When I use ccm start at a linux terminal, I see this error:

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
1

There are 1 best solutions below

0
Alex Ott On

There could be several reasons:

  • You have Cassandra process that is already running - check, with ps -aux|grep -i cassandra that you don't have other Cassandra processes running already on localhost
  • You haven't created additional interfaces as described in the CCM documentation or this article - create necessary interfaces/aliases (this depend on your OS).