我正在尝试关注Cassandra学院的教程,这是我在尝试运行ccm来创建Cassandra集群时得到的。
~/cassandra$ ccm create demo_1node -v 2.2.0 -n 1 -s -d
Downloading http://archive.apache.org/dist/cassandra/2.2.0/apache-cassandra-2.2.0-src.tar.gz to /tmp/ccm-RlxXjd.tar.gz (21.283MB)
22316682 [100.00%]
Extracting /tmp/ccm-RlxXjd.tar.gz as version 2.2.0 ...
Compiling Cassandra 2.2.0 ...
Deleted /home/adelin/.ccm/repository/2.2.0 due to error
Traceback (most recent call last):
File "/usr/local/bin/ccm", line 4, in <module>
__import__('pkg_resources').run_script('ccm==2.0.4.1', 'ccm')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ccm-2.0.4.1-py2.7.egg/EGG-INFO/scripts/ccm", line 72, in <module>
File "build/bdist.linux-x86_64/egg/ccmlib/cmds/cluster_cmds.py", line 130, in run
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 56, in __init__
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 69, in load_from_repository
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 44, in setup
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 231, in download_version
ccmlib.common.CCMError: Error compiling Cassandra. See /home/adelin/.ccm/repository/last.log for details
adelin@sofiaag:~/cassandra$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
adelin@sofiaag:~/cassandra$ ant -version
Apache Ant(TM) version 1.9.5 compiled on May 31 2015
操作系统
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="https://bugs.debian.org/"
这是错误文件last.log this definition file
答案 0 :(得分:1)
Cassandra 2.2需要Java 8.更新路径并尝试再次启动命令。
答案 1 :(得分:0)