pcmanus/ccm — Issue #21: Using release version of Cassandra fails
Author: jfenwick
Created: 2012-03-01 19:42:58+00:00
State: open

Here's the output:

$ ccm create test -v 1.0.7
Downloading http://archive.apache.org/dist/cassandra/1.0.7/apache-cassandra-1.0.7-src.tar.gz to /tmp/ccm-d0wjTS.tar.gz (7.536MB)
5515607 [69.80%]
Extracting /tmp/ccm-d0wjTS.tar.gz as version 1.0.7 ...
Traceback (most recent call last):
File "/usr/local/bin/ccm", line 68, in
cmd.run()
File "/usr/local/lib/python2.7/dist-packages/ccmlib/cmds/cluster_cmds.py", line 67, in run
cluster = Cluster(self.path, self.name, cassandra_dir=self.options.cassandra_dir, cassandra_version=self.options.cassandra_version, verbose=True)
File "/usr/local/lib/python2.7/dist-packages/ccmlib/cluster.py", line 29, in __init__
dir, v = repository.setup(cassandra_version, verbose)
File "/usr/local/lib/python2.7/dist-packages/ccmlib/repository.py", line 17, in setup
download_version(version, verbose=verbose)
File "/usr/local/lib/python2.7/dist-packages/ccmlib/repository.py", line 58, in download_version
tar.extractall(path=__get_dir())
File "/usr/lib/python2.7/tarfile.py", line 2046, in extractall
self.extract(tarinfo, path)
File "/usr/lib/python2.7/tarfile.py", line 2083, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/usr/lib/python2.7/tarfile.py", line 2159, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.7/tarfile.py", line 2199, in makefile
copyfileobj(source, target)
File "/usr/lib/python2.7/tarfile.py", line 266, in copyfileobj
shutil.copyfileobj(src, dst)
File "/usr/lib/python2.7/shutil.py", line 48, in copyfileobj
buf = fsrc.read(length)
File "/usr/lib/python2.7/tarfile.py", line 817, in read
buf += self.fileobj.read(size - len(buf))
File "/usr/lib/python2.7/tarfile.py", line 735, in read
return self.readnormal(size)
File "/usr/lib/python2.7/tarfile.py", line 744, in readnormal
return self.fileobj.read(size)
File "/usr/lib/python2.7/gzip.py", line 252, in read
self._read(readsize)
File "/usr/lib/python2.7/gzip.py", line 299, in _read
self._read_eof()
File "/usr/lib/python2.7/gzip.py", line 338, in _read_eof
hex(self.crc)))
IOError: CRC check failed 0x10bb46fd != 0x635c8097L