incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood" <stuart.h...@rackspace.com>
Subject RE: Errors while starting cassandra through script
Date Wed, 25 Nov 2009 15:34:05 GMT
What version are you using? In trunk, line 585 of DatabaseDescriptor involves the comparator
for one of the column families / sub columns that you've defined. Have you checked that the
script works without the sed step?


-----Original Message-----
From: "Shreya Chakravarty" <shreya_chakravarty@persistent.co.in>
Sent: Wednesday, November 25, 2009 4:36am
To: "cassandra-dev@incubator.apache.org" <cassandra-dev@incubator.apache.org>
Subject: Errors while starting cassandra through script

Hi,

I am trying to change some values in conf file and start Cassandra using the following script
                ###########################################################################################################################################
#Add IP of machine to ListnerAddress tag and seed value in seed tag
IP=`/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
sed -e "s/<ListenAddress>/<ListenAddress>$IP/g" -e s/127.0.0.1/$IP/g -e "s/<ReplicationFactor>1/<ReplicationFactor>3/g"
/opt/cassandra/conf/storage-conf.xml.template > /opt/cassandra/conf/storage-conf.xml
echo Added LISTEN ADDRESS ${IP} >> /tmp/add_cassandra.log
echo Added SEED ${IP} >> /tmp/add_cassandra.log

rm -rf /var/cassandra/*/*

###########################################################################################################################################
#start cassandra
/opt/cassandra/bin/cassandra
echo "Started cassandra server" >> /tmp/add_cassandra.log

Error encountered:
-bash-3.2# Listening for transport dt_socket at address: 8888
DEBUG - Loading settings from /opt/cassandra/bin/../conf/storage-conf.xml
DEBUG - Syncing log with a period of 1000
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:60)
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:172)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:585)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        ... 2 more
Caused by: java.lang.NullPointerException
        at org.apache.cassandra.utils.XMLUtils.getNodeValues(XMLUtils.java:73)
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:571)
        ... 4 more

Please let me know if I am missing something here.

Thanks & Regards,
Shreya Chakravarty


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.



Mime
View raw message