Reputation: 10132
I have successfully installed ccm
and created a test cluster
ccm list
*tutorial
ccm status
node1: DOWN (Not initialized)
node1:DOWN is abnormal: I still tried
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 through this post. but not totally clear what needs to be node:
Upvotes: 2
Views: 1391
Reputation: 31252
There are two things to have to consider:
CCM
will start cassandra
instance automatically. so you don't have to do it by yourself. If you have started it use kill PID (PID is process ID which you can get by typing ps aux | grep cassandra
in commandline on POSIX machines )
you have to set CASSANDRA_HOME
.
This is how it looks it mine .bash_profile. you can put in either .bashrc
or .bash_profile
. But source
it for it to set to current environment
export CASSANDRA_HOME=/Users/Documents/cassandra
Upvotes: 3