I have installed Cassandra on ubuntu 12.04 .
But when I start it, the following error occurrs:
cassandra -f
xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1493M -Xmx1493M -Xmn373M -Xss160k
Segmentation fault (core dumped)
I did the following to solve it but nothing happens:
in /etc/conf/cassandra-env.sh I commented the following lines:
JVM_OPTS="$JVM_OPTS -XX:+HeapDumpOnOutOfMemoryError"
# set jvm HeapDumpPath with CASSANDRA_HEAPDUMP_DIR
if [ "x$CASSANDRA_HEAPDUMP_DIR" != "x" ]; then
JVM_OPTS="$JVM_OPTS -XX:HeapDumpPath=$CASSANDRA_HEAPDUMP_DIR/cassandra-`date +%s`-pid$$.hprof"
fi
and ran the following commands on shell as root:
unset IBM_HEAPDUMP
unset IBM_HEAP_DUMP
How should I solve it?
I had same problem, and found the following:
ok, how about:
..no Segmentation Fault this time, and maybe the ‘xss’ part is just an obscure debugging message in that case?
hmm, no processes started though.
What did work for me is:
…though I realise that’s not running it in the foreground like
cassandra -fis supposed to.I eventually gave up and started over, avoiding manual installation by just booting an EC2 instance from the DataStax Community AMI: https://aws.amazon.com/amis/datastax-auto-clustering-ami-2-2
But… I just found what looks like the real answer here: https://stackoverflow.com/a/12941854/202168