Cannot start cassandra cluster manager on Mac OS X: UnavailableSocketError

I successfully installed ccm and created a test cluster

 ccm list *tutorial ccm status node1: DOWN (Not initialized) 

node1: DOWN is abnormal: I was still trying

 ccm start Traceback (most recent call last): File "/Users/Documents/virtualenvs/cqlengCass/bin/ccm", line 5, in <module> pkg_resources.run_script('ccm==1.1', 'ccm') File "/Users/Documents/virtualenvs/cqlengCass/lib/python2.7/site-packages/pkg_resources.py", line 487, in run_script self.require(requires)[0].run_script(script_name, ns) File "/Users/Documents/virtualenvs/cqlengCass/lib/python2.7/site-packages/pkg_resources.py", line 1344, in run_script exec(script_code, namespace, namespace) File "/Users/Documents/virtualenvs/cqlengCass/lib/python2.7/site-packages/ccm-1.1-py2.7.egg/EGG-INFO/scripts/ccm", line 72, in <module> File "build/bdist.macosx-10.9-intel/egg/ccmlib/cmds/cluster_cmds.py", line 432, in run File "build/bdist.macosx-10.9-intel/egg/ccmlib/cluster.py", line 232, in start File "build/bdist.macosx-10.9-intel/egg/ccmlib/node.py", line 377, in start File "build/bdist.macosx-10.9-intel/egg/ccmlib/common.py", line 272, in check_socket_available ccmlib.common.UnavailableSocketError: Inet address 127.0.0.1:9042 is not available: [Errno 48] Address already in use 

I read the post, but did not fully understand what node should be:

+2
source share
1 answer

There are two things to consider:

  • CCM will automatically start the cassandra instance. therefore, you do not need to do this yourself. If you run it, use kill PID (PID is the process identifier you can get by typing ps aux | grep cassandra at the command line on POSIX machines)

  • you need to set CASSANDRA_HOME . This is how it looks like my .bash_profile. you can enter either .bashrc or .bash_profile . But source it must set the current environment

    export CASSANDRA_HOME=/Users/Documents/cassandra

+2
source

Source: https://habr.com/ru/post/972867/


All Articles