Sumit Chourasia
Sumit Chourasia

Reputation: 2434

Not Able to Run Cassandra on AWS Ubuntu Instance

I'm having openJDK 1.7 version and Have installed Cassandra 2.1.8. I have changed the CLASSPATH of CASSANDRA_HOME as well but I'm getting following error.

> 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

Any help will be appreciated. I have been stuck in this for past 2 days.

Upvotes: 1

Views: 157

Answers (2)

Mani
Mani

Reputation: 343

1: set java home env variable enter image description here

2:set python path : C:\Python27 3: If other Python installed move this up.

Upvotes: 1

Vinod Patel
Vinod Patel

Reputation: 430

Install Java JDK then try running Cassandra.

Upvotes: 0

Related Questions