我正在尝试使用 3.4 版创建集群,但它一直给我一个错误。奇怪的是,例如,如果我尝试使用 2.1.5 版本,一切运行顺利。
因此,例如,如果我尝试创建一个集群,ccm create -v 3.4 -n 3 mycluster
这就是我得到的:
WARN:Downloading 3.4 failed, due to [Errno 2] No such file or directory. Trying to build from git instead.
http://git-wip-us.apache.org/repos/asf/cassandra.git git:cassandra-3.4
Cloning Cassandra...
Traceback (most recent call last):
File "/usr/local/bin/ccm", line 5, in <module>
pkg_resources.run_script('ccm==2.1.4', 'ccm')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ccm-2.1.4-py2.7.egg/EGG-INFO/scripts/ccm", line 74, in <module>
File "build/bdist.linux-x86_64/egg/ccmlib/cmds/cluster_cmds.py", line 158, in run
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 63, in __init__
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 76, in load_from_repository
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 77, in setup
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 203, in clone_development
ccmlib.common.CCMError: Building C* version git:cassandra-3.4 failed. Attempted to delete /home/pedro/.ccm/repository/gitCOLONcassandra-3.4 but failed. This will need to be manually deleted
但是,如果我这样做ls -a /home/pedro/.ccm/repository/ -l
,我看不到必须根据堆栈跟踪手动删除的文件夹:
total 12
drwxrwxr-x 3 pedro pedro 4096 Mar 25 18:01 .
drwxrwxr-x 3 pedro pedro 4096 Mar 25 17:59 ..
drwxrwxr-x 9 pedro pedro 4096 Mar 25 17:36 2.1.5
-rw-rw-r-- 1 pedro pedro 0 Mar 25 17:59 last.log