无法在AWS Ubuntu实例上运行Cassandra

时间:2015-08-12 08:14:48

标签: java apache ubuntu amazon-web-services cassandra-2.0

我有openJDK 1.7版本并安装了Cassandra 2.1.8。 我已经更改了CASSANDRA_HOME的CLASSPATH,但我收到了以下错误。

> root@ip-172-31-57-69:/usr/local/apache-cassandra/bin# export CASSANDRA_HOME=/usr/local/apache-cassandra/
root@ip-172-31-57-69:/usr/local/apache-cassandra/bin#  echo $CASSANDRA_HOME;
/usr/local/apache-cassandra/
root@ip-172-31-57-69:/usr/local/apache-cassandra/bin# cd /usr/local/apache-cassandra/
root@ip-172-31-57-69:/usr/local/apache-cassandra# bin/cassandra
root@ip-172-31-57-69:/usr/local/apache-cassandra# 
CompilerOracle: inline org/apache/cassandra/db/AbstractNativeCell.compareTo (Lorg/apache/cassandra/db/composites/Composite;)I
CompilerOracle: inline org/apache/cassandra/db/composites/AbstractSimpleCellNameType.compareUnsigned (Lorg/apache/cassandra/db/composites/Composite;Lorg/apache/cassandra/db/composites/Composite;)I
CompilerOracle: inline org/apache/cassandra/io/util/Memory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/io/util/SafeMemory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare (Ljava/nio/ByteBuffer;[B)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare ([BLjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/lang/Object;JI)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon

任何帮助将不胜感激。过去两天我一直被困在这里。

2 个答案:

答案 0 :(得分:1)

1:设置java home env变量 enter image description here

2:set python路径:C:\ Python27 3:如果安装了其他Python,则将其向上移动。

答案 1 :(得分:0)

安装Java JDK然后尝试运行Cassandra。